API Guide

Table Of Contents
liason_share_status = idrac.config_mgr.set_liason_share(myshare)
#Alert Configuration
idrac.config_mgr.configure_idrac_alerts
(
enable_alerts=AlertEnable_IPMILanTypes.Disabled
)
apply_status = idrac.config_mgr.apply_changes(reboot=False)
Returns: Success or Failure.
Return Type: JSON.
idrac.config_mgr.configure_snmp_trap_destination
API string/Method: idrac.config_mgr.configure_snmp_trap_destination.
Protocol Support: Redfish.
Description: The idrac.config_mgr.configure_snmp_trap_destination() allows you to configure the SNMP
Trap Destination Settings.
Table 102. Parameters for idrac.config_mgr.configure_snmp_trap_destination
Parameter Name Type Allowed Values
destination_number
Number Destination number
Description Displays up to 4 IPv4 and IPv6 addresses.
Table 103. Parameters for idrac.config_mgr.configure_snmp_trap_destination
Parameter Name Type Allowed Values
destination
String Destination Address
Description
To receive trap alerts, enter the address (IPv4, IPv6, or FQDN). If all destination
addresses display existing IP addresses, you have configured all the existing alert
destinations and must reuse a disabled alert.
NOTE: The destination community must be the same as the iDRAC community.
Table 104. Parameters for idrac.config_mgr.configure_snmp_trap_destination
Parameter Name Type Allowed Values
snmp_v3_username
String User defined string
Description From the drop-down list, select the SNMP v3 user to whom you want to send the SNMP
v3 format traps.
Table 105. Parameters for idrac.config_mgr.configure_snmp_trap_destination
Parameter Name Type Allowed Values
state
Enum
State_SNMPAlertTypes.Enabled
State_SNMPAlertTypes.Disabled
Description
To enable the IP address to receive traps, select this option.
Example:
#Set liason share
myshare = FileOnShare(remote="<IP OR HOSTNAME>:/<NFS-SHARE-PATH>/<FILE-NAME>",
mount_point='Z:\', isFolder=False,
creds=UserCredentials(<USERNAME>, <PASSWORD>))
liason_share_status = idrac.config_mgr.set_liason_share(myshare)
# Configure SNMP Trap Destination Settings
idrac.config_mgr.configure_snmp_trap_destination
OpenManage Python SDK API introduction
35