Revert to default BIOS setting - HewlettPackard/python-ilorest-library GitHub Wiki
If not created already, create an instance of Rest or Redfish Object using the RestObject or RedfishObject class respectively. The class constructor takes iLO hostname/ ip address, iLO login username and password as arguments. The class also initializes a login session, gets systems resources and message registries.
Rest Object creation:
:
Redfish Object creation:
:
The method ex6_bios_revert_default takes an instance of rest object (or redfish object if using redfish API) as parameter.
:
Find and get the BIOS settings URI(s) from the systems resources collection.
:
Next the HTTP request body is set with default configuration.
:
PUT request is performed next and response error is handled if any.
:
A successful PUT response implies that BIOS is set to default settings, however the changes will get affected only after a system reset or reboot.