使用hpasmcli,我如何find两个特定的BIOS设置?

在HP ProLiant Generation 9服务器上的Ubuntu中使用hpasmcli,如何find此BIOS设置?

启动到BIOS – >系统选项 – >启用或禁用虚拟化选项

我无法重新启动,因为我必须保持99.999%的正常运行时间。

我用SHOW SERIAL VIRTUAL。 我也使用了这些:

SHOW ASR SHOW BOOT SHOW DIMM SHOW F1 SHOW FANS SHOW HT SHOW IML SHOW IPL SHOW NAME SHOW PORTMAP SHOW POWERMETER SHOW POWERSUPPLY SHOW PXE SHOW SERVER SHOW TEMP SHOW TPM SHOW UID SHOW WOL 

我必须重新启动系统才能find此设置吗? dmidecode或lshw能帮助我吗?

虽然这与你的其他问题很相似,但是理解你正在做的事情的全部背景是非常好的。 例如,你为什么要查询BIOS设置,以及与已经运行的系统的正常运行时间有什么关系?

如果您正在考虑自动化多个HP ProLiant服务器的BIOSconfiguration,那么也有相应的工具。 您需要的主要工具是SmartStart Scripting Toolkit中的 hprcu

该实用程序可以捕获或导入包含BIOSconfiguration的XML文件。 输出文件是非常可读的,所以你正在寻找的参数将显示如下:

  <feature feature_id="158" selected_option_id="1" sys_default_option_id="1" feature_type="option"> <feature_name>Intel(R) Virtualization Technology</feature_name> <option option_id="1"> <option_name>Enabled</option_name> </option> <option option_id="2"> <option_name>Disabled</option_name> </option> </feature> 

 Usage: Hprcu [OPTION] OPTION -?, -h Display this usage message -s, Save the current configuration to a file -l Load configuration settings from a file -f Configuration input/output file, defaults to standard out -t Outputs the feature help and warning text. Only valid with the Save option. -r Save/Load raw data features(IPL, PCI Devices, Controller Order, etc). Must be applied to identical systems. 

dmidecode应该做你想要的。 ROM版本保存在SMBIOS(又名DMI)中。 在这一点上,这是一个简单的stringparsing来拉取实际的版本string。