HP ProLiant servers management with hpasmcli
Hpasmcli, HP Management Command Line Interface, is a scriptable command line tool to manage and monitor the HP ProLiant servers through the hpasmd and hpasmxld daemons. It is part of the hp-health package that comes with the HP Proliant Support Pack, or PSP.
[root@rhel4 ~]# rpm -qa | grep hp-health hp-health-8.1.1-14.rhel4 [root@rhel4 ~]# [root@rhel4 ~]# rpm -qi hp-health-8.1.1-14.rhel4 Name : hp-health Relocations: (not relocatable) Version : 8.1.1 Vendor: Hewlett-Packard Company Release : 14.rhel4 Build Date: Fri 04 Jul 2008 07:04:51 PM CEST Install Date: Thu 02 Apr 2009 05:10:48 PM CEST Build Host: rhel4ebuild.M73C253-lab.net Group : System Environment Source RPM: hp-health-8.1.1-14.rhel4.src.rpm Size : 1147219 License: 2008 Hewlett-Packard Development Company, L.P. Signature : (none) Packager : Hewlett-Packard Company URL : http://www.hp.com/go/proliantlinux Summary : hp System Health Application and Command line Utility Package Description : 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. [root@rhel4 ~]# [root@rhel4 ~]# rpm -ql hp-health-8.1.1-14.rhel4 /etc/init.d/hp-health /opt/hp/hp-health /opt/hp/hp-health/bin /opt/hp/hp-health/bin/IrqRouteTbl /opt/hp/hp-health/bin/hpasmd /opt/hp/hp-health/bin/hpasmlited /opt/hp/hp-health/bin/hpasmpld /opt/hp/hp-health/bin/hpasmxld /opt/hp/hp-health/hprpm.xpm /opt/hp/hp-health/sh /opt/hp/hp-health/sh/hpasmxld_reset.sh /sbin/hpasmcli /sbin/hpbootcfg /sbin/hplog /sbin/hpuid /usr/lib/libhpasmintrfc.so /usr/lib/libhpasmintrfc.so.2 /usr/lib/libhpasmintrfc.so.2.0 /usr/lib/libhpev.so /usr/lib/libhpev.so.1 /usr/lib/libhpev.so.1.0 /usr/lib64/libhpasmintrfc64.so /usr/lib64/libhpasmintrfc64.so.2 /usr/lib64/libhpasmintrfc64.so.2.0 /usr/share/man/man4/hp-health.4.gz /usr/share/man/man4/hpasmcli.4.gz /usr/share/man/man7/hp_mgmt_install.7.gz /usr/share/man/man8/hpbootcfg.8.gz /usr/share/man/man8/hplog.8.gz /usr/share/man/man8/hpuid.8.gz [root@rhel4 ~]#
This handy tool can be used to view and modify several BIOS settings of the server and to monitor the status of the different hardware components like fans, memory modules, temperature, power supplies, etc.
It can be used in two ways:
- Interactive shell
- Within a script
The interactive shell supports TAB command completion and command recovery through a history buffer.
[root@rhel4 ~]# hpasmcli
HP management CLI for Linux (v1.0)
Copyright 2004 Hewlett-Packard Development Group, L.P.
--------------------------------------------------------------------------
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
Type 'help' to get a list of all top level commands.
--------------------------------------------------------------------------
hpasmcli> help
CLEAR DISABLE ENABLE EXIT HELP NOTE QUIT REPAIR SET SHOW
hpasmcli>
As it can be seen in the above example several main tasks can be done, to get the usage of every command simply use HELP followed by the command.
hpasmcli> help show USAGE: SHOW [ ASR | BOOT | DIMM | F1 | FANS | HT | IML | IPL | NAME | PORTMAP | POWERSUPPLY | PXE | SERIAL | SERVER | TEMP | UID | WOL ] hpasmcli> hpasmcli> HELP SHOW BOOT USAGE: SHOW BOOT: Shows boot devices. hpasmcli>
In my experience SHOW is the most used command above the others. Following are examples for some of the tasks.
- Display general information of the server
hpasmcli> SHOW SERVER
System : ProLiant DL380 G5
Serial No. : XXXXXXXXX
ROM version : P56 11/01/2008
iLo present : Yes
Embedded NICs : 2
NIC1 MAC: 00:1c:c4:62:42:a0
NIC2 MAC: 00:1c:c4:62:42:9e
Processor: 0
Name : Intel Xeon
Stepping : 11
Speed : 2666 MHz
Bus : 1333 MHz
Core : 4
Thread : 4
Socket : 1
Level2 Cache : 8192 KBytes
Status : Ok
Processor: 1
Name : Intel Xeon
Stepping : 11
Speed : 2666 MHz
Bus : 1333 MHz
Core : 4
Thread : 4
Socket : 2
Level2 Cache : 8192 KBytes
Status : Ok
Processor total : 2
Memory installed : 16384 MBytes
ECC supported : Yes
hpasmcli>
- Show current temperatures
hpasmcli> SHOW TEMP Sensor Location Temp Threshold ------ -------- ---- --------- #1 I/O_ZONE 49C/120F 70C/158F #2 AMBIENT 23C/73F 39C/102F #3 CPU#1 30C/86F 127C/260F #4 CPU#1 30C/86F 127C/260F #5 POWER_SUPPLY_BAY 52C/125F 77C/170F #6 CPU#2 30C/86F 127C/260F #7 CPU#2 30C/86F 127C/260F hpasmcli>
- Get the status of the server fans
hpasmcli> SHOW FAN Fan Location Present Speed of max Redundant Partner Hot-pluggable --- -------- ------- ----- ------ --------- ------- ------------- #1 I/O_ZONE Yes NORMAL 45% Yes 0 Yes #2 I/O_ZONE Yes NORMAL 45% Yes 0 Yes #3 PROCESSOR_ZONE Yes NORMAL 41% Yes 0 Yes #4 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes #5 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes #6 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes hpasmcli>
- Show device boot order configuration
hpasmcli> SHOW BOOT First boot device is: CDROM. One time boot device is: Not set. hpasmcli>
- Set USB key as first boot device
hpasmcli> SET BOOT FIRST USBKEY
- Show memory modules status
hpasmcli> SHOW DIMM DIMM Configuration ------------------ Cartridge #: 0 Module #: 1 Present: Yes Form Factor: fh Memory Type: 14h Size: 4096 MB Speed: 667 MHz Status: Ok Cartridge #: 0 Module #: 2 Present: Yes Form Factor: fh Memory Type: 14h Size: 4096 MB Speed: 667 MHz Status: Ok Cartridge #: 0 Module #: 3 Present: Yes Form Factor: fh Memory Type: 14h Size: 4096 MB Speed: 667 MHz Status: Ok ...
In the scripting mode hpasmcli can be used directly from the shell prompt with the -s option and the command between quotation marks, this of course allow you to process the output of the commands like in the below exampl.
[root@rhel4 ~]# hpasmcli -s "show dimm" | egrep "Module|Status" Module #: 1 Status: Ok Module #: 2 Status: Ok Module #: 3 Status: Ok Module #: 4 Status: Ok Module #: 5 Status: Ok Module #: 6 Status: Ok Module #: 7 Status: Ok Module #: 8 Status: Ok [root@rhel4 ~]#
To execute more than one command sequentially separate them with a semicolon.
[root@rhel4 ~]# hpasmcli -s "show fan; show temp" Fan Location Present Speed of max Redundant Partner Hot-pluggable --- -------- ------- ----- ------ --------- ------- ------------- #1 I/O_ZONE Yes NORMAL 45% Yes 0 Yes #2 I/O_ZONE Yes NORMAL 45% Yes 0 Yes #3 PROCESSOR_ZONE Yes NORMAL 41% Yes 0 Yes #4 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes #5 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes #6 PROCESSOR_ZONE Yes NORMAL 36% Yes 0 Yes Sensor Location Temp Threshold ------ -------- ---- --------- #1 I/O_ZONE 47C/116F 70C/158F #2 AMBIENT 21C/69F 39C/102F #3 CPU#1 30C/86F 127C/260F #4 CPU#1 30C/86F 127C/260F #5 POWER_SUPPLY_BAY 50C/122F 77C/170F #6 CPU#2 30C/86F 127C/260F #7 CPU#2 30C/86F 127C/260F [root@rhel4 ~]#
If you want to play more with hpasmcli go to its man page and to the ProLiant Support Pack documentation.
Juanma.


Hello,
I’m running a HP Proliant ML350 G6 with Ubuntu 9.04. Recently I installed hp-health, hp-snmp-agents, and all other software from the HP support cd for Linux.
I have access now to the System Management Homepage installed in the system, although it looks more like a reports tool, as I can’t do any system configuration or view any hardware status.
I need to get control over the FANS, as they get very noisy sometimes, and I can’t do anything but to reboot the server to stop the noise.
Any idea or help?
Thanks for your post.
you have a G6 and you’re worried about the noise? Perhaps you shouldn’t use a server as a desktop. Servers should be in an airconditioned room where nobody cares about the noise. I don’t think its a wise idea to alter their speed or stop them from auto managing themselves.
Did you figure out a fix for the noisy server fans? I have the same problem on my DL380 server.
Hi Juan, I have a lot of problems with hpasm on my Proliants. I cannot get them running. I did load Suse SLES 11 Rev1 and did install latets rpms and it didnt work.
I searched for any tips or tricks or hints or any other suse linux admin, running sles 11 with health management but didnt find one.
Do you have an idea, where to search for other DL585 G1 and G2 admins and DL380 G3 and G4 admins, running Suse an hpasm ?
Where do I have to look ?
best regards Gert
from Germany
Very Helpful.
Thank you!
Great! I’m fooling around a bit with a DL380G5 and Ubuntu 12.04 on it. This is one of the great features I found out today. :-) Good thing is, the HP tools are in a repository at HP, where all major Linux distro’s are in: http://downloads.linux.hp.com/SDR/ Just ad them to your sources.lst, import the key, aptitude update and off you go installing (and updating) them straight from the HP repo.
Yes, it is really interesting blog. As a Dell employee I really think the infromation you shared with us is very much useful. Thanks for sharing with us.
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your site?
My blog site is in the exact same area of interest as yours and my users would
certainly benefit from a lot of the information you provide here.
Please let me know if this okay with you. Appreciate it!