_____________________________________________________________________
724-746-5500 | blackbox.com
Page 266
<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>
<off>script to power off</off>
<cycle>script to cycle power</cycle>
<status>script to write power status to /var/run/power-‐status</status>
<speed>baud rate</speed>
<charsize>character size</charsize>
<stop>stop bits</stop>
<parity>parity setting</parity>
</powerstrip>
The
id
appears on the web page in the list of available devices types to configure.
The outlets describe targets that the scripts can control. For example, a power control board may control several
different outlets. The port-‐id is the native name for identifying the outlet. This value will be passed to the scripts in the
environment variable
outlet
, allowing the script to address the correct outlet.
There are four possible scripts:
on, off, cycle
and
status
.
When a script is run, its standard input and output is redirected to the appropriate serial port. The script receives the
outlet and port in the
outlet
and
port
environment variables respectively.
The script can be anything that can be executed within the shell.
All of the existing scripts in
/etc/powerstrips.xml
use the
pmchat
utility.
pmchat
works just like the standard unix "chat" program, only it ensures interoperation with the port manager.
The final options,
speed, charsize, stop
and
parity
define the recommended or default settings for the attached device.
15.10 IPMItool
The
console server
includes the
ipmitool
utility for managing and configuring devices that support the Intelligent
Platform Management Interface (IPMI) version 1.5 and version 2.0 specifications.
IPMI is an open standard for monitoring, logging, recovery, inventory, and control of hardware that is implemented
independent of the main CPU, BIOS, and OS. The service processor (or Baseboard Management Controller, BMC) is the
brain behind platform management and its primary purpose is to handle the autonomous sensor monitoring and event
logging features.
The
ipmitool
program provides a simple command-‐line interface to this BMC. It features the ability to read the sensor
data repository (SDR) and print sensor values, display the contents of the System Event Log (SEL), print Field Replaceable
Unit (FRU) inventory information, read and set LAN configuration parameters, and perform remote chassis power
control.
SYNOPSIS
ipmitool
[
-‐c
|
-‐h
|
-‐v
|
-‐V
]
-‐I
open
<
command
>
ipmitool
[
-‐c
|
-‐h
|
-‐v
|
-‐V
]
-‐I
lan
-‐H
<
hostname
>
[
-‐p
<
port
>]
[
-‐U
<
username
>]
[
-‐A
<
authtype
>]