The snmp-agent trap queue-size command sets the queue length of the trap messages sent to a target host.
The undo snmp-agent trap queue-size command cancels the current settings.
The default value is 1000.
Parameter | Description | Value |
---|---|---|
size | Specifies the queue length of trap messages. | The value is an integer that ranges from 1 to 1000. The default value is 1000. |
When a large number of trap messages need to be sent in a certain period of time, packets will be lost if the queue length of trap messages is insufficient. The queue length can be adjusted to reduce the packet loss ratio.
When the lifetime of trap messages is long, the queue length of trap messages needs to be lengthened. If the queue length is not lengthened, packet loss will occur.