Instruction Manual
118
As a reminder to the reader, some shells will interpret brackets ([ and ])
for pattern matching. Depending on your shell, it may be necessary to
enclose ranged lists within quotes. For example, in tcsh, the last example
above should be executed as:
powerman --on “foo[0,4-5]”
pmpower
The pmpower command is a high level tool for manipulating remote
preconfigured power devices connected to the gateway either via a serial
or network connection.
pmpower [-?h] [-l device | -r host] [-o outlet] [-u username] [-p password]
action
-?/-h This help message.
-l The serial port to use.
-o The outlet on the power target to apply to
-r The remote host address for the power target
-u Override the configured username
-p Override the configured password
on This action switches the specified device or outlet(s) on
off This action switches the specified device or outlet(s) off
cycle This action switches the specified device or outlet(s) off and
on again
status This action retrieves the current status of the device or outlet
Examples:
To turn outlet 4 of the power device connected to serial port 2 on:
# pmpower -l port02 -o 4 on
To turn an IPMI device off located at IP address 192.168.1.100 (where
username is ‘root’ and password is ‘calvin’:
# pmpower -r 192.168.1.100 -u root -p calvin off