StarTech.com ECS0016 manual Adding new RPC devices

Models: ECS0016

1 140
Download 140 pages 33.13 Kb
Page 126
Image 126

Instruction Manual

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.

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 rather weird 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, StarTech.com will then 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, login to the Management Console and use ftp or wget to transfer files.

Here is a brief description of the elements of the XML entries in /etc/ config/powerstrips.xml.

<powerstrip>

<id>Name or ID of the device support</id>

<outlet port=”port-id-1”>Display Port 1 in menu</outlet>

<outlet port=”port-id-2”>Display Port 2 in menu</outlet>

...

<on>script to turn power on</on>

119

Page 126
Image 126
StarTech.com ECS0016 manual Adding new RPC devices