R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101

65
Default level
3: Manage level
Parameters
seconds: Timeout time, which ranges from 1 to 2,592,000 seconds.
Description
Use the snmp-agent trap life command to configure the holding time of the traps in the queue. Traps are
discarded when the holding time expires.
Use the undo snmp-agent trap life command to restore the default holding time of traps in the queue.
By default, the holding time of SNMP traps in the queue is 120 seconds.
The SNMP module sends traps in queues. As soon as the traps are saved in the trap queue, a timer is
started. If traps are not sent out until the timer times out (in other words, the holding time configured by
using this command expires), the system removes the traps from the trap sending queue.
Related commands: snmp-agent trap enable and snmp-agent target-host.
Examples
# Configure the holding time of traps in the queue as 60 seconds.
<Sysname> system-view
[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
Default level
3: Manage level
Parameters
size: Number of traps that can be stored in the trap sending queue, which ranges from 1 to 1,000.
Description
Use the snmp-agent trap queue-size command to set the size of the trap sending queue.
Use the undo snmp-agent trap queue-size command to restore the default queue size.
By default, up to 100 traps can be stored in the trap sending queue.
Traps are saved into the trap sending queue when generated. The size of the queue determines the
maximum number of the traps that can be stored in the queue. When the size of the trap sending queue
reaches the configured value, the newly generated traps are saved into the queue, and the earliest ones
are discarded.
Related commands: snmp-agent target-host, snmp-agent trap enable, and snmp-agent trap life.
Examples
# Set the maximum number of traps that can be stored in the trap sending queue to 200.