Manage HP Proliant Server with HPASMCLI Utility.

HPASM is the management tools package for the HP Proliant server series. It can be used to display the System or Bios setting as well as the hardware status of the Proliant servers. The utility is very useful in the automation jobs as the CLI can be included in the shell scripts. The tool can be launched in CLI or directly from shell with proper arguments . Type “hpasmcli” in the shell to start it in CLI mode.

Here are some of the common HPASMCLI commands that makes our life easier.

1. Get the Server details

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:4c:72:09:89:d0
NIC2 MAC: 00:4c:72:09:89:9c

Processor: 0
Name         : Intel
Stepping     : 11
Speed        : 2666 MHz
Bus          : 1333 MHz
Core         : 4
Thread       : 4
Socket       : 1
Level2 Cache : 8192 KBytes
Status       : Ok

Processor: 1
Name         : Intel
Stepping     : 11
Speed        : 2666 MHz
Bus          : 1333 MHz
Core         : 4
Thread       : 4
Socket       : 1
Level2 Cache : 8192 KBytes
Status       : Ok

Memory installed : 16384 MBytes
ECC supported    : Yes
hpasmcli>

2. Get the Server Fan details

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>

3. Get the details of temperature

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>

4. verify the boot device

hpasmcli> SHOW BOOT
First boot device is: CDROM.
One time boot device is: Not set.
hpasmcli>

5. List the boot order

hpasmcli> SHOW IPL
IPL (Standard Boot Order)
————————-
#0 CDROM
#1 Floppy
#2 USBKEY
#3 HDD
#4 PXE

6. Get the memory module 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

7. Verify the HT ( Hyper threading) Status

hpasmcli> SHOW HT
Processor hyper-threading is currently disabled.

8. Check the Power Supply status

hpasmcli> SHOW POWERSUPPLY
Power supply #1
Present  : Yes
Redundant: No
Condition: Ok
Hotplug  : Supported

9. Check the PXE status of NICs

hpasmcli> SHOW PXE
PXE boot status (2 Embedded NICs):
NIC1: PXE enabled
NIC2: PXE enabled

10. Check the LED status

hpasmcli> SHOW UID
UID is currently off.