Set BIOS DHCP - HewlettPackard/python-ilorest-library GitHub Wiki

First 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:

:

Example 32: Set BIOS DHCP

The method ex32_set_bios_dhcp takes an instance of rest object ( or redfish object if using Redfish API ) and DHCP properties as arguments.

:

Find and get the BIOS settings URI from the systems resources collection.

:

For the DHCP settings prepare the request body with only the DHCP settings we want to change and perform the PATCH request.

:

A successful PATCH response will set the DHCP values to the new values provided in DHCP settings, however the changes will go into effect only after a system reset or reboot.

⚠️ **GitHub.com Fallback** ⚠️