How to put a device into maintenance mode with curl?
CAPM 3.x
You can run the following commands anywhere that has curl installed:
To put a device into "maintenance mode" run the following command:
curl -k -w "HTTP code: %{http_code}" -u 'admin:<password>' -X PUT http://<capc>:8181/pc/center/webservice/devices/deviceItemId/<deviceItemId number>/lifeCycleState/MAINTENANCE
To change the device back to "active mode" run the following command:
curl -sk -o /dev/null -w "%{http_code}" -u 'admin:<password>' -X PUT http://<capc>:8181/pc/center/webservice/devices/deviceItemId/<deviceItemId number>/lifeCycleState/ACTIVE