Skip to content

Latest commit

 

History

History
98 lines (83 loc) · 2.05 KB

reference_element_api_getsnmptrapinfo.adoc

File metadata and controls

98 lines (83 loc) · 2.05 KB
permalink sidebar keywords summary
api/reference_element_api_getsnmptrapinfo.html
sidebar
snmp,trap,get,getting,info,getsnmptrapinfo
You can use the GetSnmpTrapInfo method to get current SNMP trap configuration information.

GetSnmpTrapInfo

You can use the GetSnmpTrapInfo method to get current SNMP trap configuration information.

Parameters

This method has no input parameters.

Return values

This method has the following return values:

Name Description Type

trapRecipients

List of hosts that are to receive the traps generated by the cluster.

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

Request example

Requests for this method are similar to the following example:

{
   "method":"GetSnmpTrapInfo"
   "params":{},
   "id":1
}

Response example

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
     }
   ]
 }
}

New since version

9.6