PDU
Yes, we have PDUs and at least some of them are smart PDUs, meaning that not only can we watch temperature, power and humidity on them, but we can power off and on specific outlets from the command line.
Servertech PDUs
powering off and on outlets
These instructions are good for Sentry Switched CDU 6.0 firmware. (Manuals here, see the manuals for Firmware Version 6.0). They may well work for other versions of the firmware but haven't been tested there.
Please Note: We have a very limited number of switched powerstrips in place. Only the network racks (A1-sdtpa, A1-eqiad, A8-eqiad) and B1-sdtpa have these. The rest have normal non-switched powerstrips. The reasoning behind this is that the switched strip has more parts and complexity and can have issues more easily than the more simple strips. Networking kit does not normally have full out of band lights management, so those racks have them. B1-sdtpa is a legacy rack to have older servers that do not have full lights out management remote reboot capabilities.
- Find the pdu for your rack and your server. racktables
- It will have a name like ps1-b1-sdtpa.mgmt.pmtpa.wmnet (powerstrip-n, rack m, dc name...)
- ssh in, use standard credentials for the manangement network.
- Check what outlets or groups of outlets you want. You can list those by:
-
list user - At the "Username:" prompt, type
root. The outlets are first, the groups at the bottom.
-
- To power the outlet off, do
-
off name-of-outlet-or-group-here - Example:
off .BC6oroff dataset1-all
-
- To power the outlet on, do
-
on name-of-outlet-or-group-here
-
Sample successful output from a power off command:
Switched CDU: off dataset1-all Group: dataset1-all Outlet Outlet Outlet Load Power Control ID Name Status (Amps) (Watts) State .AC6 dataset1_a:xz:6 Off 0.00 0 Off .AC7 dataset1-array1_z:xz:7 Off 0.00 0 Off .BC6 dataset1_b:xz:6 Off 0.00 0 Off .BC7 dataset1-array1_b:xz:7 Off 0.00 0 Off Command successful Switched CDU:
Power on gives similar results.
Note that there's a five minute timeout so if you idle too long you'll have to reconnect.
summary of other commands
A few other useful commands:
- From the command line, hitting return/enter will show you a list of commands it knows.
- Check the version of the firmware by
show system. It also announces the firmware version when you login. - Some commands for displaying various statuses: show ports/network/options/towers/infeeds/traps/system
- A couple monitoring commands: istat, envmon, sysstat
- Listing user info: list user (you will be prompted for a specific user), list users (you will be shown a list of all users)