122
To generate linkUp or linkDown traps when the link state of an interface changes, you must enable the
linkUp or linkDown trap function globally by using the
snmp-agent trap enable
[
standard
[
linkdown
|
linkup
] * ] command and on the interface by using the
enable snmp trap updown
command.
The following matrix shows the keyword and router compatibility:
Keyword SR6602
SR6602-X
SR6604/SR6608/SR6616
SR6604-X/SR6608-X
/SR6616-X
acfp
No
No
•
Yes on the RPE-X1 or
RSE-X1 MPU
•
No on the MCP MPU
Yes
Examples
# Enable the SNMP agent to send SNMP authentication failure traps to 10.1.1.1 in the community
public
.
<Sysname> system-view
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname
public
[Sysname] snmp-agent trap enable standard authentication
Related commands
•
snmp-agent target-host
•
enable snmp trap updown
snmp-agent trap if-mib link extended
Use
snmp-agent trap if-mib link extended
to configure the SNMP agent to send extended
linkUp/linkDown traps.
Use
undo snmp-agent trap if-mib link extended
to restore the default.
Syntax
snmp-agent trap if-mib link extended
undo snmp-agent trap if-mib link extended
Default
The SNMP agent sends standard linkUp/linkDown traps.
Views
System view
Default command level
3: Manage level
Usage guidelines
The extended linkUp and linkDown traps add interface description and interface type to the standard
linkUp and linkDown traps for fast failure point identification. When you configure the
snmp-agent trap
if-mib link extended
command, make sure the NMS supports the extended linkUp and linkDown traps.
If not, the NMS will be unable to parse the traps.
•
A standard linkUp trap is in the following format:
#Apr 24 11:48:04:896 2008 Sysname IFNET/4/INTERFACE UPDOWN:
Содержание SR6600 SPE-FWM
Страница 8: ...vi Index 254 ...