HPE has added a RESTful API to the ILO Gen9 server, which can be used to batch modify server settings.
HPE's official HPE RESTful Interface Tool (hereinafter referred to as a tool) Http://www.hpe.com/info/resttool
Demo uses the server for HPE bl660c Gen9 (E5 V4 CPU)
There are hundreds of servers that need to change the following BIOS settings
System configuration→bios/platform Configuration (RBSU) →power Management options→power profile→maximum Performance
System configuration→bios/platform Configuration (RBSU) →power Management options→advanced Power Management options→ Collaborative Power control→disabled
The official tool login slow inefficient ILO REST API supports using Curl to send data
Querying the current BIOS settings
Users logged in need administer user accounts permissions
The returned data is in JSON format and can be processed with python-m Json.tool
Curl-s--insecure-u [Username]:[password]-l Https://[ilo ip]/rest/v1/systems/1/bios|python-m Json.tool
{"ACPIROOTBRIDGEPXM": "Enabled", "Acpislit": "Enabled", "Adjsecprefetch": "Enabled", "AdminEmail": "", "AdminName": "", "Adminotherinfo": "", "AdminPassword": null, "Adminphone": "", "advancedmemprotection": "ADVANCEDECC", "Asrstatus": "Disabled", "asrtimeoutminutes": "Ten", "Assettagprotection": "Locked", "Attrib Uteregistry ":" HpBiosAttributeRegistryI38.1.1.52 "," Autopoweron ":" Alwayspoweron "," Bootmode ":" Uefi "," Bootor Derpolicy ":" retryindefinitely "," channelinterleaving ":" Enabled "," Collabpowercontrol ":" Enabled "," Consisten Tdevnaming ":" Lomsonly "," Custompostmessage ":" "," Daylightsavingstime ":" Disabled "," Dcuipprefetcher ":" Enabl Ed "," Dcustreamprefetcher ":" Enabled "," Description ":" This was the Platform/bios Configuration (RBSU) Current sett Ings "," Dhcpv4 ":" Enabled "," Dynamicpowerresponse ":" Fast "," embsasenable ":" Enabled "," embsata1enable ":" Enabled "," embsata2eNable ":" Enabled "," Embvideoconnection ":" Auto "," Embeddeddiagnostics ":" Enabled "," Embeddeddiagsmode ":" Auto " , "Embeddedsata": "AHCI", "Embeddedserialport": "Com2irq3", "Embeddeduefishell": "Enabled", "Embeddeduserp Artition ":" Disabled "," Emsconsole ":" Com1irq4 "," Energyperfbias ":" Maxperf "," Eraseuserdefaults ":" No "," Extendedambienttemp ":" Disabled "," Extendedmemtest ":" Disabled "," F11bootmenu ":" Enabled "," Fcscanpolicy ":" Ca Rdconfig "," Fanfailpolicy ":" Shutdown "," Faninstallreq ":" Enablemessaging "," flexlom1enable ":" Enabled "," Flexlom2enable ":" Enabled "," Hwprefetcher ":" Enabled "," Inteldmilinkfreq ":" Auto "," Intelnicdmachannels ":" Ena Bled "," intelperfmonitoring ":" Disabled "," INTELPROCVTD ":" Enabled "," Intelqpifreq ":" Auto "," Intelqpipowe Rmanagement ":" Disabled "," intelligentprovisioning ":" Enabled "," Internalsdcardslot ":" Enabled "," IONONPOSTEDP Refetching ":" Enabled ", "IPv4Address": "0.0.0.0", "Ipv4gateway": "0.0.0.0", "Ipv4primarydns": "0.0.0.0", "Ipv4secondarydns": "0.0. 0.0 "," Ipv4subnetmask ":" 0.0.0.0 "," Ipv6duid ":" Auto "," Maxmembusfreqmhz ":" Auto "," Maxpciespeed ":" Maxsup Ported "," memfasttraining ":" Enabled "," minprocidlepkgstate ":" Nostate "," Minprocidlepower ":" Nocstates ", "Mixedpowersupplyreporting": "Enabled", "Modified": "2018-03-12t08:45:27+00:00", "Name": "BIOS current Settings", "Networkbootretry": "Enabled", "NicBoot1": "Networkboot", "NicBoot10": "Disabled", "NicBoot11": "Disabled" , "NicBoot12": "Disabled", "NicBoot13": "Disabled", "NicBoot14": "Disabled", "NicBoot15": "Disabled", "NicBoot16": "Disabled", "NicBoot2": "Disabled", "NicBoot3": "Disabled", "NicBoot4": "Disabled", "NicBoot5" ":" Disabled "," NicBoot6 ":" Disabled "," NicBoot7 ":" Disabled "," NicBoot8 ":" Disabled "," NicBoot9 ":" Networ Kboot "," nmidebugbutTon ":" Enabled "," nodeinterleaving ":" Disabled "," numagroupsizeopt ":" Clustered "," Oldadminpassword ": null, "Oldpoweronpassword": null, "pcibuspadding": "Enabled", "pcislot1enable": "Enabled", "pcislot2enable": "Enab Led "," Pcieexpressecrcsupport ":" Disabled "," postf1prompt ":" Disabled "," Powerbutton ":" Enabled "," PowerOn Logo ":" Enabled "," Poweronpassword ": null," Powerprofile ":" Balancedpowerperf "," Powerregulator ":" STATICHIGHP Erf "," Prebootnetwork ":" Auto "," Procaes ":" Enabled "," proccoredisable ": 0," prochyperthreading ":" Enabled "," Procnoexecute ":" Enabled "," Procturbo ":" Enabled "," Procvirtualization ":" Enabled "," Procx2apic ":" Ena Bled "," ProductId ":" q1c54a "," qpibandwidthopt ":" Balanced "," Qpisnoopconfig ":" Standard "," Removableflash Bootseq ":" Externalkeysfirst "," restoredefaults ":" No "," restoremanufacturingdefaults ":" No "," romselection ": "Currentrom", "SATAsEcureerase ":" Disabled "," Saveuserdefaults ":" No "," Securebootstatus ":" Disabled "," Serialconsolebaudrate ":" 1 15200 "," serialconsoleemulation ":" Vt100plus "," Serialconsoleport ":" Auto "," serialnumber ":" ******** "," S Erverassettag ":", "ServerName": "", "Serverotherinfo": "", "Serverprimaryos": "", "Serviceemail": "", "ServiceName": "", "Serviceotherinfo": "", "Servicephone": "", "Settingsresult": {"ETag": "877aac20" , "Messages": [{"Messageargs": ["NicBoot4"], "MessageID": "Base.1.0:propertyunknown"}, {"Messageargs": [ "NicBoot8"], "MessageID": "Base.1.0:propertyunknown"}, { "Messageargs": ["NicBoot15"], "MessageID": "Base.1.0:pro Pertyunknown " }, {"Messageargs": ["NicBoot3"], "Message ID ":" Base.1.0:propertyunknown "}, {" Messageargs ": [" NicBoot5 " ], "MessageID": "Base.1.0:propertyunknown"}, {"Mess Ageargs ": [" NicBoot16 "]," MessageID ":" Base.1.0:propertyunknown " }, {"Messageargs": ["NicBoot14"], "M Essageid ":" Base.1.0:propertyunknown "}, {" Messageargs ": [" NICB Oot12 "]," MessageID ":" Base.1.0:propertyunknown "}, { "Messageargs": ["NicBoot11"], "MessageID": "Base.1.0:propertyunknown " }, {"Messageargs": ["NicBoot13"], "MessageID": "Base." 1.0:propertyunknown "}, {" Messageargs ": [" NICBOOT6 " ], "MessageID": "Base.1.0:propertyunknown"}, {"Messageargs": [ "NicBoot7"], "MessageID": "Base.1.0:propertyunknown"}, {"Messageargs": [], "MessageID": "Base.1.0:success"}], "Time": "1987-03-12t08:41:55+00:00"}, "Slot1nicboot1": "Networkboot", "Slot1nicboot2": "Disabled", "Slot 1nicboot3 ":" Disabled "," Slot1nicboot4 ":" Disabled "," Sriov ":" Enabled "," Thermalconfig ":" Optimalcooling ", "Thermalshutdown": "Enabled", "TimeFormat": "UTC", "TimeZone": "Utc0", "tpmstate": "Notpresent", "Tpmtyp E ":" NOTPM "," Type ": "hpbios.1.2.0", "Uefioptimizedboot": "Enabled", "Uefipxeboot": "Auto", "Uefishellbootorder": "Disabled", "Uefishellstartup": "Disabled", "uefishellstartuplocation": "Auto", "Uefishellstartupurl": "", "Urlbootfile": "", "Usb3mode": "Auto", "Usbboot": "Enabled", "Usbcontrol": "usbenabled", "Utilitylang": "中文版", "V Irtualinstalldisk ":" Disabled "," Virtualserialport ":" Com1irq4 "," Vlancontrol ":" Disabled "," Vlanid ": 0," Vlanpriority ": 0," WakeOnLAN ":" Disabled "," links ": {" Baseconfigs ": {" href ":"/rest/v1/systems /1/bios/baseconfigs "}," Boot ": {" href ":"/rest/v1/systems/1/bios/boot "}," Mapp Ings ": {" href ":"/rest/v1/systems/1/bios/mappings "}," Settings ": {" href ":"/rest/v 1/systems/1/bios/settings "}," IScsi ": {" href ":"/rest/v1/systems/1/bios/iscsi "}, "Self": {"href": "/rest/v1/systems/1/bios"}}}
HPE Gen9 using the RESTful API Management Server