< Home

snmp-agent trap queue-size

Function

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.

Format

snmp-agent trap queue-size size

undo snmp-agent trap queue-size

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the queue length of the trap messages sent to the target host to 200.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap queue-size 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >