Get iLO NIC - 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 20: Get iLO NIC

The method ex20_get_ilo_nic takes an instance of rest object ( or redfish object if using Redfish API ) and active flag as arguments.

:

Find and get the system resource for manager.

:

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

:

Send another GET request to the ethernet interfaces URI.

:

Print the active NIC from the response body.

:

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