Pmpower; Adding New Rpc Devices - Tripp Lite B092-016 Owner's Manual

Console server management switch console server with poweralert console server
Hide thumbs Also See for B092-016:
Table of Contents

Advertisement

Chapter 15: Advanced Configuration
Some examples of powerman targets:
Power on hosts bar,baz,foo01,foo02,...,foo05: powerman --on bar baz foo[01-05]
Power on hosts bar,foo7,foo9,foo10: powerman --on bar,foo[7,9-10]
Power on foo0,foo4,foo5: powerman --on foo[0,4-5]
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]"

15.9.2 pmpower

The pmpower command is a high-level tool for manipulating remote, preconfigured power devices connected to the Console
Servers 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 located at IP address 192.168.1.100 to OFF (where username is 'root' and password is 'calvin':
# pmpower -r 192.168.1.100 -u root -p calvin off
Default system Power Device actions are specified in /etc/powerstrips.xml. Custom Power Devices can be added in /etc/config/
powerstrips.xml. If an action is attempted which has not been configured for a specific Power Device, pmpower will exit with an
error.

15.9.3 Adding new RPC devices

There are two simple paths to adding support for new RPC devices.
The first is to have scripts to support the particular RPC included in the open source PowerMan project (http://sourceforge.net/
projects/powerman). The PowerMan device specifications are unusual and it is suggested that you leave the actual writing of
these scripts to the PowerMan authors. However documentation on how they work can be found at http://linux.die.net/man/5/
powerman.dev. Once the new RPC support has been built into the PowerMan, we will include the updated PowerMan build in
a subsequent firmware release.
The second path is to directly add support for the new RPC devices (or to customize the existing RPC device support) on your
particular Console Server. The Manage: Power page uses information contained in /etc/powerstrips.xml to configure and
control devices attached to a serial port. The configuration also looks for (and loads) /etc/config/powerstrips.xml if it exists.
The user can add their own support for more devices by putting definitions for them into /etc/config/powerstrips.xml. This
file can be created on a host system and copied to the Management Console device using scp. Alternatively, log in to the
Management Console and use ftp or wget to transfer files.
230

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents