Hpasmcli Usage Example on ProLiant DL380

Hpasmcli is short for HP System Health Application and Insight Management Agents, it’s a scriptable command line interface for interacting with the hpasm management daemons, which can be used to view / set / modify BIOS settings such as hyper-threading, boot sequence control, and UID LEDs. It can also be used to display hardware status.

In addition to the command line interface, hpasmcli is also usable for incorporating into shell scripts. The return value of hpasmcli can be used to verify a command executed successfully. If multiple commands are executed, only the status of the last command is returned to the shell.

Hpasmcli supports TAB completion of command names and has a history buffer that can be accessed using the up/down arrows. The following examples are created on a HP ProLiant DL380 G4 server.

As an example, the following first executes the ´SHOW SERVER´ command to retrieve basic system information, and next reads the environment temperature:

[root@example email]# hpasmcli -s 'show server; show temp'

System        : ProLiant DL380 G4
Serial No.    : CN-HIDED-YD
ROM version   : P51 12/02/2004
iLo present   : Yes
Embedded NICs : 2
NIC1 MAC: 00:13:21:cc:33:49
NIC2 MAC: 00:13:21:cc:33:48

Processor: 0
Name         : Intel Xeon
Stepping     : 1
Speed        : 3000 MHz
Bus          : 800 MHz
Socket       : 1
Level2 Cache : 1024 KBytes
Status       : Ok

Processor: 1
Name         : Intel Xeon
Stepping     : 1
Speed        : 3000 MHz
Bus          : 800 MHz
Socket       : 2
Level2 Cache : 1024 KBytes
Status       : Ok

Processor total  : 2

Memory installed : 8192 MBytes
ECC supported    : Yes

Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#0        SYSTEM_BD             -          -
#1        PROCESSOR_ZONE       40C/104F   62C/143F
#2        CPU#1                46C/114F   80C/176F
#3        I/O_ZONE             43C/109F   60C/140F
#4        CPU#2                50C/122F   80C/176F
#5        POWER_SUPPLY_BAY     32C/89F    50C/122F

[root@example email]# echo $?

You can use “show dimm” to check details about the memory arrary. It’s more specific compared to dmidecode that we mentioned before:

hpasmcli> show dimm
DIMM Configuration
Cartridge #:   0
Module #:      1
Present:       Yes
Form Factor:   9h
Memory Type:   12h
Size:          1024 MB
Speed:         333 MHz
Status:        Ok

Cartridge #:   0
Module #:      2
Present:       Yes
Form Factor:   9h

The other supported commands are listed here: CLEAR | DISABLE | ENABLE | EXIT | HELP | QUIT | SHOW. For example we can set the boot sequence at command-line mode like this:

hpasmcli> SET BOOT [enter]
Invalid Arguments

It can also be used to enable/disable Automatic Server Recovery, Processor Hyper-Threading, PXE BOOT on specified NIC and Wake-On-Lan feature, etc.

HPASMCLI manual page is avaiable on hp.com, and the binary itself is avaiable on ftp.compaq.com, and the installation itself is as easy as installing normal rpm. For any issues, dont forget to raise a thread at our support forum. 🙂

Share this post

2 thoughts on “Hpasmcli Usage Example on ProLiant DL380

  1. this command is not working in some of my servers HP Proliant servers installed with RHEL4. Other Proliant servers with same configuration is working fine with hpasmcli command.Can you please help to troubleshoot the problem

Post Comment