HPACUCLI Cheat Sheet (BASH)

hpacucli is a utility provided by Hewlett Packard (HP) to interact with their Smart Array controllers. The commands below were used on a RPM based distribution, but should work across all Linux flavours

You can run them by either entering interactive mode (i.e. just run hpacucli and then enter the commands), or directly from the shell (by prefixing them with hpacucli

Details

  • Language: BASH

Snippet

# List controllers
hpacucli ctrl all show status

# List the state of all physical disks
hpacucli ctrl slot=0 pd all show

# Make the LED on one drive blink so the technician can find it
while true; do hpacucli ctrl slot=0 pd 1:2 modify led=on; sleep 1; hpacucli ctrl slot=0 pd 1:2 modify led=off; done