hpasmcli utility
hpasmcli hpasmcli help

Note: hpasmcli can be used in a script using the -s switch Single command example: hpasmcli -s “show temp” Multiple commands example: hpasmcli -s “show temp; show fans”
Common Commands
Help hpasmcli> help CLEAR, DISABLE, ENABLE, EXIT, HELP, NOTE, QUIT, REPAIR, SET, SHOW
Set hpasmcli> set ASR , BOOT [ FIRST
Show hpasmcli> show ASR, BOOT, DIMM [ SPD ], F1, FANS, HT, IML, IPL, NAME, PORTMAP, POWERMETER, POWERSUPPLY, PXE, SERIAL [ BIOS
Clear hpasmcli> clear IML
Information Commands
Server hpasmcli> show server

Note: this will show you top level server information
Temp hpasmcli> show temp

Note: this will show you all sensor temps on server
Dimm hpasmcli> show dimm

Note: this will show you all memory modules installed
Fans hpasmcli> show fans

Note: this will show you the status of installed fans

Source