HP Array Configuration and Diagnostic Utilities on Linux
Getting the HP Array Configuration Utility (ACU) and the Array Diagnostic Utility (ADU) for Linux to work was non-trivial. It does not seem to be supported anymore, but I managed to get it working on CentOS 5 running on an HP ProLiant DL185 G5.
First, install compatibility packages:
sudo yum install compat-libstdc++-33.i386 compat-libstdc++-33.x86_64 \
compat-libstdc++-296.i386
Then, download and install the packages HP provides:
wget -nd ftp://ftp.hp.com/pub/products/servers/supportsoftware/linux/hpacucli-7.70-12.linux.rpm wget -nd ftp://ftp.hp.com/pub/products/servers/supportsoftware/linux/hpadu-7.70-12.linux.rpm wget -nd ftp://ftp.hp.com/pub/products/servers/supportsoftware/linux/hpsmh-2.1.7-168.linux.x86_64.rpm sudo rpm -i --nodeps hpacucli-7.70-12.linux.rpm sudo rpm -i --force hpadu-7.70-12.linux.rpm hpsmh-2.1.7-168.linux.x86_64.rpm
The Array Configuration command line utility can be started with the command:
sudo -i hpacucli
The utility itself is quite user-friendly, and the help seems to be good. Just type “help” and you will find commands to show and modify your arrays. Some examples:
=> ctrl all show status
Smart Array E200
Controller Status: OK
Cache Status: OK
Battery Status: OK
=> ctrl all show config
Smart Array E200 (sn: PA6C90L9SV4152)
array A (SATA, Unused Space: 0 MB)
logicaldrive 1 (1.4 TB, RAID 5, OK)
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SATA, 500.1 GB, OK)
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SATA, 500.1 GB, OK)
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SATA, 500.1 GB, OK)
physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SATA, 500.1 GB, OK)
The utility also understands commands directly from the command line:
$ sudo -i hpacucli ctrl serialnumber=PA6C90L9SV4152 array A show
Smart Array E200
Array: A
Interface Type: SATA
Unused Space: 0 MB
Status: OK
To create a diagnostic report with the Array Diagnostic Utility, type:
sudo /usr/sbin/hpaducli -f hpadu.report
That will create a detailed diagnostic report into the file “hpadu.report”. You can use that report to check what has failed in case you controller or array status is not OK.
I created a little script called “array_check” that can be added as a cron job to check that the array is healthy:
#!/bin/sh /usr/sbin/hpacucli ctrl serialnumber=PA6C90L9SV4152 array A show status|grep -q "array A: OK" if test "$?" != "0" then echo Array A not ok! hpacucli ctrl serialnumber=PA6C90L9SV4152 array A show hpacucli ctrl serialnumber=PA6C90L9SV4152 show echo ------------------------------------------------------------ echo /usr/sbin/hpaducli -f /tmp/hpadu.report cat /tmp/hpadu.report fi
Just add the script as a cron job and configure your machine to e-mail you the output of cron jobs, and you will get an e-mail if the status of the array changes.






October 3rd, 2008 at 14:15
Hello,
I hope I can find help here. First, sorry for my English.
I am new to Linux and I have a Proliant DL180 G5 with Centos 5.2 on it.
I have 2 Sata HDD on it, raid 1, hardware.
When I make a rebuild (from Bios) I have to wait 180-240 minutes. Tell me please how can I make the rebuilding from Linux, because the downtime from bios rebuilding si very high. I don’t know what raid controller I have (Smart Array E200 or Embbeded Sata). How can I find?
I try to install hpacucli with some steps from forums and I got this:
hpacucli
HP Array Configuration Utility CLI 7.70-12.0
Detecting Controllers…Done.
Type “help” for a list of supported commands.
Type “exit” to close the console.
=> ctrl all show config detail
Error: No controllers detected.
Please help me.
Thank you.
Radu
October 7th, 2008 at 14:11
Hi Radu,
Could it be that the embedded SATA controller is not supported by those tools? At least that’s what the error message might suggest…
November 26th, 2008 at 19:03
hi,
it works for my dl180 + debian linux 4.0r5.
but i use the latest hpacucli (8.10-2)
if only tells me:
Smart Array E200 in Slot ATTR_VALUE_SLOT_UNKNOWN
but i can see the status of the array etc.
mfg JAF
April 15th, 2009 at 6:03
Thanks Mikko.. I spent ages trying to get this to work on a DL385 with CentOS 5 (32-bit).
The install install threw a bunch of errors - but it all works!
Just had to swap the package hpsmh-2.1.7-168.linux.x86_64.rpm with hpsmh-2.1.7-168.linux.i386.rpm (for the 32-bit OS).
Thanks,
Cal
June 16th, 2009 at 10:46
I’ve tried using hpacucli 7.10 and now 8.10. I cannot get any controllers to show up, my system is an old machine with a Smart Array 431 in it.
I’m doing this in debian following this forum http://debian.catsanddogs.com/component/option,com_smf/Itemid,41/topic,10.0/ for installing RPM packages into debian which works fine. I can actually get hpshm up and going, but again no controllers appear in either cpqacuxe or hpacucli.
cpqarrayd is 2.3-1 (latest afaik)…..any ideas anyone ?
June 29th, 2009 at 20:03
Thank you so much! Followed your directions on a Compaq DL380 G2 running CentOS 4.7 and everything worked perfectly.
October 27th, 2009 at 5:00
Works on CentOS 5.4 and with HP ADU 8.35
battery needs to be changed but it works.. THANKS!
=> ctrl all show status
Smart Array 5i in Slot 0 (Embedded)
Controller Status: OK
Cache Status: Not Configured
Smart Array 6400 in Slot 1
Controller Status: OK
Cache Status: Temporarily Disabled
Battery/Capacitor Status: Failed (Replace Batteries/Capacitors)
Cheers,
Jakub
January 15th, 2010 at 5:32
The hpsmh rpm package in the post is for 64-bit. If you are like me with the DL380 G3 (32-bit), you’ll want
ftp://ftp.hp.com/pub/products/servers/supportsoftware/linux/hpsmh-2.1.7-168.linux.i386.rpm
Also, if you use yum, you don’t need to install the compat packages, yum automatically chooses the best one.
[root@alpha ~]# yum install hpacucli-7.70-12.linux.rpm hpadu-7.70-12.linux.rpm hpsmh-2.1.7-168.linux.i386.rpm
mikko, thanks for the post. Excellent and worked the first time!