Scripts For Managing Slaves - 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
COMMANDS
help
This can be used to get command-line help on ipmitool commands. It may also be placed at the end of commands to get
option usage help.
ipmitool help
Commands:
raw
Send a RAW IPMI request and print response
lan
Configure LAN Channels
chassis
Get chassis status and set power state
event Send pre-defined events to MC
mc
Management Controller status and global enables
sdr
Print Sensor Data Repository entries and readings
sensor
Print detailed sensor information
fru Print built-in FRU and scan SDR for FRU locators
sel Print System Event Log (SEL)
pef Configure Platform Event Filtering (PEF)
sol Configure IPMIv2.0 Serial-over-LAN
isol Configure IPMIv1.5 Serial-over-LAN
user
Configure Management Controller users
channel
Configure Management Controller channels
session
Print session information
exec
Run list of commands from file
set
Set runtime variable for shell and exec
ipmitool chassis help
Chassis Commands: status, power, identify, policy, restart_cause, poh, bootdev
ipmitool chassis power help
chassis power Commands: status, on, off, cycle, reset, diag, soft
You will find more details on ipmitools at http://ipmitool.sourceforge.net/manpage.html

15.11 Scripts for Managing Slaves

When the Console Servers are cascaded, the Master is in control of the serial ports on the Slaves, and the Master's
Management Console provides a consolidated view of the settings for its own and all the Slave's serial ports. However, the
Master does not provide a fully consolidated view, e.g. Status: Active Users. It only displays those users active on the Master's
ports. You will need to write a custom bash script that parses the port logs if you want to find out who's logged in to cascaded
serial ports from the master.
You will probably also want to enable remote or USB logging, as local logs only buffer 8K of data and don't persist between
reboots.
This script would parse each port log file line by line. Each time it sees 'LOGIN: username', it adds the username to the list
of connected users for that port, each time it sees 'LOGOUT: username' it removes it from the list. The list can then be nicely
formatted and displayed. It is also possible to run this as a CGI script on the B092-016. In this case, the remote/USB logged
port logs files are in: /var/run/portmanager/logdir (or they are in /var/log). Otherwise you can run the script on the remote log
server.
To enable log storage and connection logging:
• Select Alerts & Logging: Port Log
• Configure log storage
• Select Serial & Network: Serial Port, Edit the serial port(s)
• Under Console Server, select Logging Level 1 and click Apply
234

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents