Set ESKM primarykeyserver - 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 37: Set ESKM Primary Key Server =============================
The method ex37_set_ESKM_PrimaryKeyServer takes an instance of rest object ( or redfish object if using Redfish API ) and primary key server address and port settings as arguments.
:
Find and get the ESKM settings URI from the systems resources collection.
:
For the ESKM settings, prepare the request body with the Primary key server settings we want to change and perform the PATCH request.
:
A successful PATCH response will set the primary key server settings to the new values provided in ESKM settings, however the changes will go into effect only after a system reset or reboot.