_____________________________________________________________________________

IP POWER PAGE 19 OF 24

8. Direct Control Using HTTP Commands

Power outlet status and control:
The IP Power provides an alternate method for directly setting and getting the status of the power
outlets through HTTP commands. This is particularly useful for controlling the IP Powerโ€™s outlets
using an automated script.
The format of these commands is:
http://username:password@a.b.c.d/Set.cmd?CMD=command+outlet_id=1/0+outlet_id=1/0
Where:
username The username you use to login to the IP Power (default is admin)
password The password you use to login to the IP Power (default is 12345678)
a.b.c.d The IP address of the IP Power (default is 192.168.0.50)
command GetPower to read the status (specifying outlets is not required)
SetPower to turn on or off the ports (power setting for each outlet must be
specified after the command)
port_id (SetPower only)
P60 Port 1
P61 Port 2
P62 Port 3
P63 Port 4
Example 1:
The HTTP command:
http://admin:12345678@192.168.0. 50/Set.cmd?CMD=GetPower
Returns the power status for each outlet in the following format (outlets 5 to 8 may be ignored):
<html>P60=0,P61=0,P62=0,P63=0,P64=0,P65=0,P66=0,P67=0</html>
In the above example, all outlets are off.
Example 2:
The HTTP command:
http://admin:12345678@192.168.0.50/Set.cmd?CMD=SetPower+P60=1+P61=0+P62=0+P63
=1
Turns the power on for the first (P60) and fourth (P63) outlets, and turns power off for the second
(P61) and third (P62) outlets. Returns the power status for each outlet in the following format:
_____________________________________________________________________________

IP POWER PAGE 20 OF 24

<html>P60=1,P61=0,P62=0,P63=1</html?>
Example 3:
The HTTP command: to control the 9258 operation at a specified time
http://username:password@XXX.XXX.XXX.XXX/Set.cmd?CMD=SetSchedule+Power
=**+YY=****+MM=**+DD=**+HH=**+MN=**+SS=**+PARAM=****+ONOFF=*
Where:
Control parameters are 1A 1B 2A 2B 3A 3B 4A 4B.
A = connect power
B = disconnect power
YY=****+MM=**+DD=**+HH=**+MN=**+SS=* : time parameter
YY: year (20YY), 01 = 2001
MM: month (0 1-12)
DD: date (01-31)
HH: hour (24 hours: 0- 23)
MN: minute (1-60)
SS: second (1-60)
PARAM=*: time schedule parameter. Parameter list as follows:
128 Once only
127 Every day
31 Week days (Monday to Friday)
96 Weekend days (Saturday and Sunday)
ONOFF=*: operate parameter
0 open
1 close
For example:
http://
/admin:12345678@192.168.1.10/Set.cmd?CMD=SetSchedule+Power=1A+YY=2006+MM=02
+DD=16+HH=06+MN=02+SS=16+PARAM=128+ONOFF=1
The above command controls the IP Power at IP address 192.168.1.0, user name is admin and
password is 12345678. This 9258 will connect power of outlet 1 (p60), once only on
2006/2/16 06:02.

NOTE

๎€ Use + to separate each parameter, e.g. to simply power on outlet 1:
http://admin:12345678@192.168.1.10/Set.cmd?CMD=SetPower+P60=1
๎€ The command syntax is case sensitive so be selective using upper and lower case in
command format.
๎€ The free tool wget is useful for sending these HTTP commands. For example, to
send the command in Example 1, you could use: