Linux – How to determine specific BIOS settings with dmidecode and lshw commands with HP servers

bioshp-proliantlinuxUbuntu

I am using HP ProLiant Generation 9 servers running Ubuntu as the OS. I have used dmidecode and lshw commands in the past. But I don't know how to use them to find all of the BIOS settings. I support 99.999% uptime SLAs. So I cannot reboot the servers. The API interface tool that HP has to find the BIOS settings requires RHEL or Windows as the OS.

The different settings I want to find are obtained by rebooting the server, going into BIOS then doing one of the following:

Setting #1
Go to "System Options" -> "Processor Options" -> see if hyperthreading is enabled.

Setting #2
Go to Server Availability -> see if "ASR Status" is enabled or disabled

How do I use dmidecode or lshw to find the above settings? I have tried different flags and analyzed hundreds of lines of dmidecode output.

Best Answer

You're using the wrong tools.
All you'll need are HP's purpose-built utilities for this.

Look for hpasmcli:

[root@Packed ~]# hpasmcli -s "SHOW HT;SHOW ASR"

Processor hyper-threading is currently enabled.

ASR timeout is 5 minutes.
ASR is currently enabled.

other options

 SHOW ASR
 SHOW BOOT
 SHOW DIMM [ SPD ]
 SHOW F1
 SHOW FANS
 SHOW HT
 SHOW IML
 SHOW IPL
 SHOW NAME
 SHOW PORTMAP
 SHOW POWERMETER
 SHOW POWERSUPPLY
 SHOW PXE
 SHOW SERIAL [ BIOS | EMBEDDED | VIRTUAL ]
 SHOW SERVER
 SHOW TEMP
 SHOW TPM
 SHOW UID
 SHOW WOL