Snmp-Agent Trap Life - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

undo snmp-agent trap ifmib link extended
View
System view
Parameters
None
Description
Use the snmp-agent trap ifmib link extended command to configure the extended trap. "Interface
description" and "interface type" are added into the extended linkUp/linkDown trap.
Use the undo snmp-agent trap ifmib link extended command to restore the default setting.
By default, the linkUp/linkDown trap uses the standard format defined in IF-MIB (refer to RFC 1213 for
detail). In this case, no MIB object name is added after the OID field of the MIB object.
Examples
# Before the configuration of the extended trap function, the trap information is as follows when a link is
down:
#Apr
2 05:53:15:883 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
#Apr 2 05:53:16:094 2000 H3C IFNET/5/TRAP:- 1 -1.3.6.1.6.3.1.1.5.3(linkDown) Interface 31
is Down
# Configure the extended linkUp/linkDown trap format to make traps include the interface description
and interface type information.
<Sysname> system-view
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
1-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents