You can use the GetSnmpTrapInfo method to get current SNMP trap configuration information.
This method has no input parameters.
This method has the following return values:
Name | Description | Type |
---|---|---|
trapRecipients | List of hosts that are to receive the traps generated by the cluster. | snmpTrapRecipient array |
clusterFaultTrapsEnabled | The value true indicates that a solidFireClusterFaultNotification is configured to be sent to the list of trap recipients when a cluster fault is logged. | boolean |
clusterFaultResolvedTrapsEnabled | The value true indicates that a solidFireClusterFaultResolvedNotification is configured to be sent to the list of trap recipients when a cluster fault is resolved. | boolean |
clusterEventTrapsEnabled | The value true indicates that a solidFireClusterEventNotification is configured to be sent to the list of trap recipients when a cluster event is logged. | boolean |
Requests for this method are similar to the following example:
{ "method":"GetSnmpTrapInfo" "params":{}, "id":1 }
This method returns a response similar to the following example:
{ "id": 1, "result": { "clusterEventTrapsEnabled": true, "clusterFaultResolvedTrapsEnabled": true, "clusterFaultTrapsEnabled": true, "trapRecipients": [ { "community": "public", "host": "192.168.151.60", "port": 162 }, { "community": "solidfireAlerts", "host": "NetworkMonitor", "port": 162 }, { "community": "wakeup", "host": "PhoneHomeAlerter", "port": 1008 } ] } }