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

77
[Sysname] snmp-agent trap if-mib link extended
snmp-agent trap life
Use snmp-agent trap life to configure the holding time of the traps in the queue.
Use undo snmp-agent trap life to restore the default holding time of traps in the queue.
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
Default
The holding time of SNMP traps in the queue is 120 seconds.
Views
System view
Default command level
3: Manage level
Parameters
seconds: Specifies the timeout time in the range of 1 to 2592000 seconds.
Usage guidelines
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.
Examples
# Configure the holding time of traps in the queue as 60 seconds.
<Sysname> system-view
[Sysname] snmp-agent trap life 60
Related commands
snmp-agent trap enable
snmp-agent target-host
snmp-agent trap queue-size
Use snmp-agent trap queue-size to set the size of the trap sending queue.
Use undo snmp-agent trap queue-size to restore the default queue size.
Syntax
snmp-agent trap queue-size size
undo snmp-agent trap queue-size
Default
Up to 100 traps can be stored in the trap sending queue.
Views
System view