API Guide
Parameter Name Type Allowed Values
SNMPOptions
WsManOptions
RedshOptions
Example:
idrac=sd.get_driver(sd.driver_enum.iDRAC,
ipaddr,
creds=UserCredentials("root", "calvin"),
protopref=ProtoPreference(ProtocolEnum.REDFISH),
pOptions=RedfishOptions(port=443))
Return type:
ObjectDevice driver: A driver handle to congure or monitor the drivers.
sdkbase.iBaseDriver.get_entityjson
API string/Method: sdkbase.iBaseDriver.get_entityjson.
Description: The sdkbase.iBaseDriver.get_entityjson() is used to create the JSON of the device by fetching the attributes
from the device using the protocol. It internally creates the raw
JSON of the device.
Example:
status=idrac.get_entityjson()
st = idrac.get_json_device()
print(status)
Returns: Success or Failure.
Return Type: JSON.
sdkbase.iBaseDriver.get_partial_entityjson
API string/Method: sdkbase.iBaseDriver.get_partial_entityjson.
Description: The sdkbase.iBaseDriver.get_partial_entityjson() is used to get the JSON with the components which are
passed as an argument for the function.
Table 10.
Parameters for sdkbase.iBaseDriver.get_partial_entityjson
Parameter Name Type Allowed Values
en
idrac.get_partial_entityj
son
(idrac.ComponentEnum.
CPU)
iDRAC CMC
iDRACCompEnum.BIOS
iDRACCompEnum.ControllerBatter
y
iDRACCompEnum.Controller
iDRACCompEnum.CPU
iDRACCompEnum.Enclosure
iDRACCompEnum.EnclosureEMM
iDRACCompEnum.EnclosurePSU
CMCCompEnum.BladeSlot
CMCCompEnum.CMC
CMCCompEnum.ComputeModule
CMCCompEnum.Controller
CMCCompEnum.ControllerBattery
CMCCompEnum.Enclosure
CMCCompEnum.EnclosureEMM
CMCCompEnum.EnclosurePSU
10 OpenManage Python SDK API introduction