redfish-client classes

redfish-client This is a client using the python-redfish library to retrieve and perform action on redfish compatible systems.

class rfclient.InventoryFile(inventory_file)[source]

redfisht-client inventory file management

add_manager(manager_name, url, login, password)[source]

Add a manager to the configuration file

Parameters:
  • manager_name (str) – Name of the manager
  • url (str) – Url of the manager
  • login (str) – Login of the manager
  • password (str) – Password of the manager
check_manager(manager_name)[source]

Check if the manager exists in configuration file

Parameters:manager_name (str) – Name of the manager
delete_manager(manager_name)[source]

Delete manager

Parameters:manager_name (str) – Name of the manager
Returns:Nothing
get_manager_info(manager)[source]

Show manager info (url, login, password)

Parameters:manager (str) – Name of the manager
Returns:info containing url, login, password
get_managers()[source]

Get manager configured

Returns:Managers
manager_incorect(exception)[source]

Log and exit if manager name is incorect

modify_manager(manager_name, parameter, parameter_value)[source]

Modify the manager settings

Parameters:
  • manager_name (str) – Name of the manager
  • parameter – url | login | password
  • parameter_value (str) – Value of the parameter
Returns:

Nothing

save()[source]

Save the configuration file data

exception rfclient.RedfishClientException(message=None, **kwargs)[source]

Base class for redfish client exceptions