API Guide
Table 2. Parameters for the Credentials
Parameter Name Type Allowed Values
creds
Dictionary of credentials
Snmpv2Credentials
UserCredentials
Description A bundle of credentials required to communicate to the device driver.
Snmpv2Credentials
UserCredentials
Table 3. Parameter for Protocol preference
Parameter Name Type Allowed Values
protopref
Enumeration of preferred protocol
ProtoPreference(ProtocolEnum.SNMP)
ProtoPreference(ProtocolEnum.WSMAN)
ProtoPreference(ProtocolEnum.REDFISH)
Description The preferred protocol used if the device supports the protocol.
Table 4. Parameter for protocol specic options
Parameter Name Type Allowed Values
pOptions
Dictionary of protocol-specic
options
SNMPOptions
WsManOptions
RedshOptions
Description A protocol-specic option for passed, port, timeout and so on.
SNMPOptions
WsManOptions
RedshOptions
Return type:
ObjectDevice driver: A driver handle to congure or monitor the drivers.
Example:
idrac=sd.find_driver(ipaddr,
creds=UserCredentials("root", "calvin"),
protopref=ProtoPreference(ProtocolEnum.WSMAN),
pOptions=WsManOptions(port=443))
sdkinfra.get_driver
API string/Method: sdkinfra.get_driver.
Description: The sdkinfra.get_driver() method is used to get a device driver for the given IP address or hostname, and check for
a particular device type.
8
OpenManage Python SDK API introduction