The Aviosys IP Power 9258 is a simple LAN connected, browser controlled power switch. The RS232 serial port mainly provides diagnostic and status information.
However the serial port can be used for emergency power control. So it can be managed as a serial PDU with the Management console GUI - refer faq 267. These are the recommended modes for configuring the IP Power and managing its outlets.
- firmware versions 1.5.2 (and above) also provides alternate methods for directly setting and getting the status of the power outlets through Telnet commands and HTTP commands (which may be useful for controlling the IP Power’s outlets using an automated script) and through SMNP
- firmware versions 1.55 (and above) have added authentication requirements to telnet
HTTP commands

The format of the HTTP command 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) or = SetPower (to turn on or off the outlets and the power setting for each outlet must be specified after the command)
port_id (for SetPower only) = P60 (outlet 1), P61 (outlet 2), P62 (outlet 3), P63 (outlet 4) 0 = power off, 1 = poweron
So 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:
<html>P60=0,P61=0,P62=0,P63=0,P64=0,P65=0,P66=0,P67=0</html?> (if all outlets are off).
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. It then returns the power status for each outlet in the following format:
<html>P60=1,P61=0,P62=0,P63=1
The HTTP command to schedule control of the 9258 outlets at a specified time is:
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 and 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=2009+MM=02+DD=16+HH=06+MN=02+SS=16+PARAM=128+ONOFF=1
This 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 16th February 2009 at 6:02 am
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 when 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:
wget –O -http://admin:12345678@192.168.0.50/Set.cmd?CMD=SetPower+P60=1+P61=0+P62=0+P63=1
Power outlet status and control using Telnet

Under DOS mode type “ C:\>telnet [IP9258] “
To log in to the device use the syntax login=password
Typing help will give you the other commands that are avaialble for the 9258 in telnet
The getpower command reports the status of power outlets 1-4
The setpower command controls the power outlets 1-4, with “0” turning power off and “1” turning power on
Example 1: setpower =11110000 (This will turn on power 1-4)
Example 2: setpower =11000000 (This turns on power on 1 & 2 and turns off power 3 & 4)
Note: Only the first four numbers are used. You can select from 0 to turn off the power to 1 to turn on the power. The syntax requires to use eight separte digits. If you only use four digits the command will not work properly
Power outlet status and control using SNMP

Reading status:
snmpget -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.1.0 (read status of Power1)
snmpget -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.2.0 (read status of Power2)
snmpget -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.3.0 (read status of Power3)
snmpget -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.4.0 (read status of Power4) (Return value as “INTEGER: 1 :” means power ON
Return value as “INTEGER: 0 :” means power OFF)
Control outlet command :
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.1.0 integer 1 (turn on Power1)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.2.0 integer 0 (turn off Power2)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.3.0 integer 1 (turn on Power3)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.2.4.0 integer 0 (turn off Power4)
Power cycle outlet command :
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.3.1.0 integer 1 (powercycle No1)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.3.2.0 integer 1 (powercycle No2)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.3.3.0 integer 1 (powercycle No3)
snmpset -v 1 -c public 192.168.1.55 1.3.6.1.4.1.92.58.3.4.0 integer 1 (powercycle No4)
Note: If the power is on the outlet will turn “OFF to ON “ when the power cycle command is placed. However if powered off the outlet will turn “ON to OFF to ON “ when place power cycle command
Comments
0 comments
Article is closed for comments.