Change temporary boot order - 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:

:

Example 8: Change temporary boot order

The method ex8_change_temporary_boot_order takes an instance of rest object (or redfish object if using Redfish API), boot target and BIOS password (default None) as arguments.

:

Find and get the system URI(s) from the system resource collection.

:

Send a HTTP GET request to the systems URI(s) retrieved.

:

Get the supported boot options from the response body and check if the boot target provided as argument is supported.

Prepare the PATCH request body.

:

PATCH request is sent next and response error is handled if any.

:

A successful PATCH response will set the Boot order in BIOS, however the settings remain pending until next reboot.

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