Dump iLO NIC state - 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 13: Dump iLO NIC states

The method ex13_dump_ilo_nic takes an instance of rest object ( or redfish object if using Redfish API ) as argument.

:

Find and get the system resource for manager.

:

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

:

Send another GET request using the ethernet interface URI(s) from the respose body.

:

Check the response body for NIC status states and print the states.

:

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