
1-24
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap ifmib link extended
# After the configuration of the extended trap function, the trap information is as follows when a link is
down:
#Apr 2 05:55:00:642 2000 H3C L2INF/2/PORT LINK STATUS CHANGE:- 1 -
Trap 1.3.6.1.6.3.1.1.5.3(linkDown): portIndex is 4227634, ifAdminStatus is 2, ifOperStatus
is 2,ifDescr='Ethernet1/0/2', ifType=6
#Apr 2 05:55:00:893 2000 H3C IFNET/5/TRAP:- 1 -1.3.6.1.6.3.1.1.5.3(linkDown) Interface 31
is Down. ifAdminStatus=1, ifOperStatus=2, ifDescr='Vlan-interface1',ifType=136
The above output indicates that the interface description and interface type information is added into the
traps, thus facilitating fault location.
snmp-agent trap life
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
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
Содержание H3C S3600 Series
Страница 502: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23 ...
Страница 507: ...3 5 Sysname habp timer 50 ...
Страница 650: ...iii display bootp client 5 3 ip address bootp alloc 5 4 ...
Страница 1085: ...ii schedule reboot delay 3 18 schedule reboot regularity 3 19 system monitor enable 3 20 update fabric 3 21 xmodem get 3 22 ...