SnmpAgentRequest
The Snmp Agent object. When creating an agent only the required parameters need to be entered, others can be skipped. When creating a v1/v2c agent, the v3 credential attributes need not be passed.
{
"name": "V2Agent",
"ipAddress": "10.106.126.64",
"snmpPort": 161,
"transportProtocol": "udp",
"snmpTimeout": 1000,
"snmpNumberOfRetries": 5,
"snmpVersion": "v2c",
"snmpCommunityOrUserV3Name": "public",
"maxBulkSize": 50,
"devType": "Switch",
"onFailTryWith": "v1",
"doNotUseGetBulkRequests": false,
"doNotUseCapabilityList": [],
"collectorNameList": [
"check-1"
],
"pollingPeriod": 200
}
This required attribute will set the device property to this value for all polled RawValues on this agent.
The id of the agent. The ID is a combination of 4 attributes "ipAddress" , "port", "v3ContextName" and "v3ContextEnginedId". The id is not required while adding/uploading an agent. This is only filled in the response of an API call
This contains the IP address of the polled agent which will be used to contact the device.The pair IP address and port must be unique among all defined agents for this collector.
This port will be used in order to contact the SNMP agent on the polled device. Default one is 161.Please note that the pair IP address and port must be unique among all defined agents for this collector.
The protocol to use for data transportation. Default is UDP.
The timeout, in milliseconds, before giving up while waiting for the agent response. 1000 is a good value that will fit most of the cases.
The number of retries before giving up while contacting the agent. 2 retries, which mean 3 attempts will be made, should be enough.
The SNMP version to use when polling the agent. Most SNMP agents support v2c, which offers better efficiency than v1. Please note that SNMP v2c (or v3) must be used when polling 64 bits counters.
The community string or SNMP v3 username, depending on the selected SNMP version. Filling this attribute is mandatory.
Only used with SNMP v3. It defines the protocol to use for authentication process.
Only used with SNMP v3. It defines the authentication password. Leave blank if not using authentication.
Only used with SNMP v3. It defines the protocol to use for privacy.
Only used with SNMP v3. It defines the privacy password. SNMP v3 Authentication only is used when this password is not provided.
The maximum number of varbind in a snmpGetBulk request issued to this device. This applies only to SNMP v2c and v3 column-based polling. The default value is 50, which covers most cases. However, it may be required to lower this value if the devices SNMP agent times out when receiving oversized request instead of replying with the largest number of varbinds that may fit in the pdu.
Only used with SNMP v3. It specifies the context name. Leave it empty for default context.
Only used with SNMP v3. It specifies the engine ID, as a hexadecimal format character string (i.e. : 0102AAAF ). Leave it empty for default engine ID.
Only used with SNMP v3 Include the context name as part of the raw values variable for this agent.
Only used with SNMP v3 Include the context engined ID as part of the raw values variable for this agent.
This attribute is required and describes the type of device this agent represents. All polled values from this agent will be tagged with this property.
This attribute affects the way SNMP v1 agents are polled. false is the standard failsafe mode: table polling will be column-based, while true enables a more efficient row-based polling model. However, this feature is not correctly supported by all SNMP v1 agents.
This options give the opportunity to issue another call when all retries have failed, using either snmpGet (v1) or snmpGetBulk (v2c) requests.
Use only get and getNext requests on agent.
The names of the capabilities not to be used on this agent
The names of the collectors to which this agent can be distributed
The polling period of the polling group that contains this agent
The capabilities assigned to the agent along with their polling periods. By default the polling period assigned to each capability is 0
The status of the discovery that was performed on the agent
A list of error messages in case of failure of discovery.