MinutemanUPS.com Forum Index MinutemanUPS.com
Power Protection Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to control outlets programatically

 
Post new topic   Reply to topic    MinutemanUPS.com Forum Index -> Remote Power Manager
View previous topic :: View next topic  
Author Message
mgrimes



Joined: 22 May 2008
Posts: 1

PostPosted: Thu May 22, 2008 6:53 pm    Post subject: How to control outlets programatically Reply with quote

Is there a way to control the outlets programatically on a 1601 through the ehternet interface from a linux machine. Perhaps with a script through the telnet interface? Or some other way? Thanks...
Back to top
View user's profile Send private message
tvancil
Site Admin


Joined: 30 Mar 2000
Posts: 231
Location: Carrollton, TX 75007

PostPosted: Fri May 23, 2008 4:12 pm    Post subject: Reply with quote

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:
http://curl.planetmirror.com/docs/httpscripting.html

NOTE:
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.

Thanks,

Todd
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    MinutemanUPS.com Forum Index -> Remote Power Manager All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group