Snmp-Agent Trap Queue-Size - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

View
System view
Parameters
seconds: SNMP trap aging time (in seconds) to be set, ranging from 1 to 2,592,000.
Description
Use the snmp-agent trap life command to set the SNMP trap aging time. SNMP traps exceeding the
aging time will be discarded.
Use the undo snmp-agent trap life command to restore the default SNMP trap aging time.
By default, the SNMP trap aging time is 120 seconds.
The system discards the traps that timed out and not sent in the SNMP trap queue.
Related commands: snmp-agent trap enable, snmp-agent target-host.
Examples
# Set the SNMP trap aging time to 60 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap life 60

snmp-agent trap queue-size

Syntax
snmp-agent trap queue-size size
undo snmp-agent trap queue-size
View
System view
Parameters
size: The maximum number of traps that can be stored in the queue, an integer ranging from 1 to 1,000.
Description
Use the snmp-agent trap queue-size command to set the length of the queue of the SNMP traps to be
sent to the destination.
Use the undo snmp-agent trap queue-size command to restore the default queue length.
By default, an SNMP trap queue can contain up to 100 SNMP traps.
After a trap is generated, it will enter the trap queue to be sent. The length of a trap queue decides the
maximum number of traps in the queue. When a trap queue reaches the configured length, the newly
generated traps will enter the queue, and the traps generated the earliest will be discarded.
Related commands: snmp-agent trap enable, snmp-agent target-host, and snmp-agent trap life.
Examples
# Set the SNMP trap queue length to 200.
1-24

Advertisement

Table of Contents
loading

Table of Contents