The snmp-agent inform command sets global parameters of informs, including the timeout period for waiting for inform ACK messages, number of times to retransmit informs, and maximum number of informs to be confirmed in the inform buffer.
The undo snmp-agent inform command restores the default setting.
By default, the timeout waiting period for inform ACK messages is 15 seconds, the number of times to retransmit informs is 3, and the maximum number of informs in the inform buffer is 39.
snmp-agent inform { timeout seconds | resend-times times | pending number } *
undo snmp-agent inform { timeout | resend-times | pending } *
Parameter | Description | Value |
---|---|---|
timeout seconds | Specifies the timeout period for waiting for inform ACK messages from the NMS. | The value is an integer ranging from 1 to 1800, in seconds. The default value is 15 seconds. |
resend-times times | Specifies the times to retransmit informs in the case that no inform ACK message is returned from the NMS. | The value is an integer ranging from 0 to 10. The default value is 3. |
pending number | Specifies the maximum number of informs to be confirmed in the inform buffer. | The value is an integer ranging from 1 to 2048. The default value is 39. |
Usage Scenario
After sending an inform, the SNMP agent waits for an inform ACK message from the NMS. You can run the snmp-agent inform command to set parameters timeout, resend-times, and pending of the inform.
These three parameters mutually affect each other. For example, if the timeout period for waiting for inform ACK messages prolongs or the times to retransmit informs increase, but the maximum number of informs to be confirmed is not changed, the number of informs to be confirmed is increased, causing the inform buffer to be quickly filled up.
Once the inform buffer is filled up, the earliest inform in the inform buffer is deleted each time a new inform enters the queue. The deleted informs are not retransmitted to the NMS. To avoid this problem, you can increase the maximum number of informs to be confirmed in the inform buffer.
You can configure the snmp-agent inform command to contain the parameter timeout, resend-times, or pending according to the network condition.
Prerequisites
Parameters for sending informs take effect only after the IP address of the target host for receiving informs is configured using the snmp-agent target-host inform command.
Precautions
You need to configure only parameters for sending informs using the snmp-agent inform command; you do not need to configure parameters for sending traps.
You must set the parameters timeout, resend-times, and pending according to the network condition. Otherwise, the SNMP working efficiency is greatly affected.