Reset server - 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 4: Reset a server

The method ex4_reset_server takes an instance of rest object (or redfish object if using redfish API) and BIOS password (default None) as arguments.

:

Find and get the Computer System settings URI from the systems resources collection.

:

Next the HTTP request body is set for the reset of each Computer System URI.

:

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

:

A successful POST response will restart the system.

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