© 2011 Racktivity NV
36/55
Antwerpsesteenweg 19 - 9080 Lochristi - Belgium - www.racktivity.com
v 2013.10.7
CLI
The EnergySwitch has a built in Command Line Interface that can be accessed through both the
CLI connector on the front or via Telnet.
Commands are typically sent to the separate modules. An EnergySwitch consists of exactly 1
Master module and 1 or more Power modules, controlled by the Master. Each module is of a
specific type: ‘M’ for master module, ‘P’ for power module, ‘A’ for sensor module. The Master
will always have address M1, power modules can have addresses P1, P2, P3, ….
Connecting
CLI connector
Connect a standard cat. 5e patch cable to both the CLI connector and your pc (i.e. by
using an RS232 to USB adapter). For the CLI Specification, see the CLI Specifications
chapter.
Connection settings: 115200/8-N-1 (115200Bd, 8 data bits, no parity, 1 stop bit)
Telnet
Connect to the device IP on port 23 over Telnet. Please note that only Telnet over SSL is
enabled by default. This can be changed on the Settings tab on the WebGUI of the
energy switch.
Telnet-SSL
Connecting to Telnet over SSL can be achieved through several 3
rd
party tools.
For example using
stunnel
(cross platform):
Create a config file for stunnel called stunnel.conf containing the following:
fips = no
cert = stunnel .pem
client = yes
[pdu]
accept = 127.0.0.1:23
connect =
[DEVICE_IP]
:992
sslVersion = SSLv3
(with
[DEVICE_IP]
being the IP address of the PDU)
Start stunnel with this config:
# stunnel stunnel.conf
If you now telnet to 127.0.0.1, stunnel will tunnel the traffic over SSL to the PDU.
Once connected, you will be presented with a log-in screen. Use the admin credentials to gain
full access. From here it is possible to access the majority of the EnergySwitch’s functions.
Type “help” for more information.