Get AHS data - 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 46: Get AHS data ======================
The method ex46_get_ahs_data takes an instance of rest object ( or redfish object if using Redfish API ) as an argument.
:
Send HTTP GET request to manager URI '/rest/v1/Manager'.
:
From the response body find the ActiveHealthSystem URI.
:
Get the extref link for download through GET request.
:
Create and write to a binary file.
: