Aug 192016

So you have faulty disk and these nice guys from HP (sorry, HPE I should say!) asked for adureport. That’s alright, it’s as easy as 1, 2, 3


Configure repository as described here.


apt-get install hpacucli

Generate report

hpacucli ctrl all diag file=/tmp/

Email report back to HP. You can of course view it first should you want it:

vim ADUReport.txt


Using hpacucli

NB. Did you know, you can do all sorts of funky stuff with hpacucli?

Either run commands to get output that can be feed to monitoring scripts:

/usr/sbin/hpacucli ctrl slot=0 physicaldrive all show status
/usr/sbin/hpacucli ctrl slot=0 logicaldrive all show status
/usr/sbin/hpacucli ctrl slot=0 array all show status

or run it interactively:


HP Array Configuration Utility CLI
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.

=>  ctrl all show config

=>  ctrl all show status

Smart Array P400 in Slot 0
   Controller Status: OK
   Cache Status: OK

=>   set target ctrl slot=0

 "controller slot=0"

=>   show

=>   show config detail

Smart Array P400 in Slot 0
   Bus Interface: PCI
   Slot: 2
   Serial Number: xxxxxxxxxxxxxxxx
   Cache Serial Number: xxxxxxxxxxx
   RAID 6 (ADG) Status: Disableds
   Controller Status: OK
   Chassis Slot:
   Hardware Revision: Rev E
   Firmware Version: 5.20
   Rebuild Priority: Medium
   Expand Priority: Medium
   Surface Scan Delay: 15 sec
   Cache Board Present: True
   Cache Status: OK
   Accelerator Ratio: 100% Read / 0% Write
   Drive Write Cache: Disabled
   Total Cache Size: 256 MB
   Battery Pack Count: 0
   SATA NCQ Supported: True

=> physicaldrive all show status

   physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 450 GB): OK
   physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 450 GB): OK
   physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 450 GB): OK
   physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 450 GB): OK
   physicaldrive 1I:1:5 (port 1I:box 1:bay 5, 450 GB): OK
   physicaldrive 1I:1:6 (port 1I:box 1:bay 6, 450 GB): OK
   physicaldrive 1I:1:7 (port 1I:box 1:bay 7, 450 GB): OK
   physicaldrive 1I:1:8 (port 1I:box 1:bay 8, 450 GB): OK
   physicaldrive 1I:1:9 (port 1I:box 1:bay 9, 450 GB): OK
   physicaldrive 1I:1:10 (port 1I:box 1:bay 10, 450 GB): OK
   physicaldrive 1I:1:11 (port 1I:box 1:bay 11, 450 GB, spare): OK
   physicaldrive 1I:1:12 (port 1I:box 1:bay 12, 450 GB, active spare): OK

=> array all show status

array AOK

=> logicaldrive all show status
   logicaldrive 1 (3.7 TB, 5): OK

If you don’t have battery or it takes long to replace it then you should enable no-battery write cache.

ctrl all show detail
hpacucli ctrl slot=0 modify nbwc=enable
hpacucli ctrl slot=0 modify dwc=enable forced
Apr 232015

Procedure for applying patches

  • Download and install hpsum, you can use instructions posted at the bottom of this page to setup repository for this purpose.
  • Download DVD iso with “HP Service Pack for Pro Liant Version” (currently version 2015.04.0) and mount it on the server.
  • Start hpsum, Baseline library, Add Baseline, point it to soemthing like “DVD/hp/swpackages/bp002502.xml”
  • Localhost Guided Update, Assign different baseline, type anything in field to get list of baselines, use 2015.04.0
  • Next, Deploy, Reboot, job done and dusted.


Bonus hint

Mount iso image on management server and make it available say with Apache or NGINX if you have more servers to patch up:

 mount -o loop -t iso9660 /state/partition1/service/HP_Service_Pack_for_ProLiant_2015.04.iso /var/www/html/DVD

Point hpsum to “HTTP Share URL” baseline, in my case URL was


That will save you some time coping DVD iso around.





Personally I find *very* slow. If you have lots of HP servers you might be better of with creating local repo and then modifying below


line, pointing this repo to your local copy.

I used this command fetch data from HP servers, roughly 40G of space is needed:

rsync -avH --progress /export/pub/repo/
rsync -avH --progress /export/pub/repo/

and then I configured NGINX to serve data from /export/pub/

Update June 2016:
now I use Spacewalk for this. Create channel, add repo and let Spacewalk take care of keeping this in sync with HP mirror.


Centos 7


vim /etc/yum.repos.d/hp.repo

name=Service Pack for ProLiant
name=HP Smart Update Manager


rpm --import
yum update && yum install -y hp-snmp-agents hpdiags
wget -O /etc/pki/rpm-gpg/GPG-KEY-hpsum
yum --disablerepo="*" --enablerepo="hpsum" list available
yum install hpsum

Centos 6

vim /etc/yum.repos.d/hp.repo

name=HP Smart Update Manager

name=HP Software Delivery Repository Repository for PSP Packages


Centos 5

vim /etc/yum.repos.d/hp.repo

name=HP Management Component Pack
name=HP Smart Update Manager



HP support for Debian isn’t great to say at least, only repo available is for management Component Pack (drivers, system management homepage, etc) – see the very bottom of this page.

No Debian repo for hpsum 🙁 I tried some tricks, I grabbed rpm package for RedHat 7, extracted it and started hpsum manually.

sudo mkdir /opt/hp/hpsum -p
wget -O /opt/hp/hpsum/hpsum.rpm
sudo apt-get install rpm2cpio
cd /opt/hp/hpsum
rpm2cpio hpsum.rpm | cpio -i --make-directories
cd /opt/hp/hpsum/opt/hp/hpsum/bin
# hpsum_service_x64 started successfully on port 63001, ssl port 63002 and ftp port disabled.

I was able to point web browser to https://server.adres:63002 logged in OK and tried inventorying/deploying at least firmware updates – but unfortunately hpsum service was dying without any meaningful reason in logs.

So essentially on Debian we are stuck with offline update only (i.e. boot your server from SPP iso or DVD). Bugger.

That is an exact reason why I prefer to go to Dell when shopping for servers! Not only made in Poland so rock solid 😉 but also with great support for Debian.

Debian repo for management Component Pack

vim /etc/apt/sources.list.d/HP-proliantsupportpack.list


deb wheezy/current non-free

or Jessie

deb jessie/current non-free

and then

apt-key add GPG-KEY-mcp
aptitude update
apt-get install hpacucli


Other way of adding missing key

gpg --keyserver --recv-keys $key
gpg --armor --export $key |apt-key add -