Joined: 30 Mar 2000
Location: Carrollton, TX 75007
|Posted: Fri May 23, 2008 4:12 pm Post subject:
|We are checking as there may be a better way to do this, but one possibility would be to use cURL on the linux box to take advantage of the RPM's web interface.
If cURL is installed and running, you could try the following command:
# curl -u user:pass -k "http://myrpm.com/rpmstatus.cgi?olid=1&iswid=1&on_off=0"
In the command above:
1) user and pass are the RPM Admin's username and password
2) myrpm.com is your RPM hostname or IP address
3) olid=1 is the outlet number
4) iswid=1 is the RPM ID, in this case it's 1 because there's only one RPM
5) on_off=0 tells the RPM to turn the selected outlet off, on_off=1 would tell it to turn that outlet back on if the outlet is set for instant or safe shutdown. If the outlet is set for safe reboot, on_off=0 would perform a safe shutdown and bring power back up automatically.
Give it a test and see if it might work for you. There's more info on cURL syntax here:
This is not a documented feature of the RPM, just an idea that might help you since the RPM interface is basically a bunch of web forms and cURL can handle this type of application fairly easily. I would still test it to be sure it does exactly what you want.