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

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

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
. In this case, the remote/USB logged port logs files are in:
B092-016
/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
To run the CGI script on the Console Server:
- Login to the
B092-016
- Run: mount -o remount,rw /dev/hda1 /
- Copy the script to /home/httpd/cgi-bin/
- Run: mount -o remount,ro /dev/hda1 /
- Browse to:
http://192.168.0.1/cgi-bin/yourscript.cgi
Server and yourscript.cgi is the name of the script
There is a useful tutorial on creating a bash script CGI at:
http://www.yolinux.com/TUTORIALS/LinuxTutorialCgiShellScript.html
Similarly the Master maintains a view of the status of the Slaves:
http://ipmitool.sourceforge.net/manpage.html
where 192.168.0.1 is the IP address of the Console
216

Advertisement

Table of Contents
loading

This manual is also suitable for:

B095-004-1eB095-003-1e-mB096-016B096-048

Table of Contents