H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – SNMP and RMON
H3C S7500 Series Ethernet Switches Chapter 1
SNMP Configuration Commands
1-18
Examples
# Enable to send the trap messages about SNMP authentication failure to community
name public on 10.1.1.1.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] snmp-agent trap enable standard authentication
[H3C] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
1.1.18 snmp-agent trap life
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
View
System view
Parameters
seconds: Aging time, in seconds, ranging from 1 to 2,592,000.
Description
Use the snmp-agent trap life command to set aging time for trap messages. The trap
messages beyond the aging time are discarded.
Use the undo snmp-agent trap life command to restore the default aging time for trap
messages.
By default, the aging time of SNMP trap messages is 120 seconds.
After the specified aging time has elapsed, the system drops the trap message.
Related commands: snmp-agent trap enable, snmp-agent target-host.
Examples
# Set the aging time for trap messages as 60 seconds.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] snmp-agent trap life 60
1.1.19 snmp-agent trap queue-size
Syntax
snmp-agent trap queue-size size