The answer is to use HP's ProLiant Support Pack which offers a bunch of CLI tools. The one I was interested in here was hpacucli
To install (as root, obviously):
- wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh
- ./bootstrap.sh ProLiantSupportPack (this adds the HP repo to apt's sources)
- wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack
- apt-key add GPG-KEY-ProLiantSupportPack
- aptitude update
- apt-get install hpacucli
root@rm-bac-1:~# hpacucli HP Array Configuration Utility CLI 8.50-6.0 Detecting Controllers...Done. Type "help" for a list of supported commands. Type "exit" to close the console. ==> ctrl slot=0 logicaldrive all show detail Smart Array P410i in Slot 0 (Embedded) array A Logical Drive: 1 Size: 136.7 GB Fault Tolerance: RAID 1 Heads: 255 Sectors Per Track: 32 Cylinders: 35132 Stripe Size: 128 KB Status: OK Unique Identifier: 600508B1001031303434393834300300 Disk Name: /dev/cciss/c0d0 Mount Points: / 131.1 GB OS Status: LOCKED Logical Drive Label: A01197DF5001438010449840590B Mirror Group 0: physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK) Mirror Group 1: physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
Cool! There are other bits I'll want - I see one of the packages offers SNMP monitoring, which naturally, I'm going to use so Nagios can keep an eye on this server.
A list of the 7 packages in the Proliant Support Pack is in this file, but here's an abridged listing:
Package: hpacucli Description: HP Command Line Array Configuration Utility The HP Command Line Array Configuration Utility is the disk array configuration program for Array Controllers. Package: cpqacuxe Description: HP Array Configuration Utility The HP Array Configuration Utility is the web-based disk array configuration program for Array Controllers. Package: hpsmh Description: HP System Management Homepage Provides HTTP infrastructure for HP Agent & Utility system packages. Homepage: http://hp.com/go/proliantlinux Package: hp-smh-templates Description: HP System Management Homepage Templates This package contains the System Management Homepage Templates for all hp Proliant systems with ASM, ILO, & ILO2 embedded management asics. Package: hp-snmp-agents Description: Insight Management SNMP Agents for HP ProLiant Systems This package contains the SNMP server, storage, and nic agents for all hp Proliant systems with ASM, ILO, & ILO2 embedded management asics. Package: hponcfg Description: RILOE II/iLo online configuration utility Hponcfg is a command line utility that can be used to configure iLO/RILOE II from within the operating system without requiring a reboot of the server. Homepage: http://hp.com/go/proliantlinux Package: hp-health Description: hp System Health Application and Command line Utility Package This package contains the System Health Monitor for all hp Proliant systems with ASM, ILO, & ILO2 embedded management asics. Also contained are the command line utilities.