![Cisco MDS 9000 Series Скачать руководство пользователя страница 983](http://html.mh-extra.com/html/cisco/mds-9000-series/mds-9000-series_command-reference-manual_21253983.webp)
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
21-45
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 21 S Commands
snmp-server enable traps
Defaults
All the notifications listed in the Syntax Description table are disabled by default except for the
following:
entity fru
,
vrrp
,
license
,
link
, and any notification not listed (including the generic
notifications such as
coldstart
,
warmstart
, and
linkupdown
).
Command Modes
Configuration mode.
Command History
Usage Guidelines
If the
snmp-server enable traps
command is entered without keywords, all notifications (informs and
traps) are enabled.
As of Cisco MDS SAN-OS Release 2.1(2), you can configure the linkUp/linkDown notifications that
you want to enable on the interfaces. You can enable the following types of linkUp/linkDown
notifications:
•
Cisco—Only traps (cieLinkUp, cieLinkDown) defined in CISCO-IF-EXTENSION-MIB.my are
sent for an interface, if ifLinkUpDownTrapEnable (defined in IF-MIB) is enabled for that interface.
•
IETF—Only traps (linkUp, linkDown) defined in IF-MIB are sent for an interface, if
ifLinkUpDownTrapEnable (defined in IF-MIB) is enabled for that interface. Only the varbinds
defined in the trap definition are sent with the traps.
•
IETF extended—Only traps (linkUp, linkDown) defined in IF-MIB are sent for an interface, if
ifLinkUpDownTrapEnable (defined in IF-MIB) is enabled for that interface. In addition to the
varbinds defined in the trap definition, varbinds defined in the IF-MIB specific to the Cisco Systems
implementation are sent. This is the default setting.
•
IETF cisco—Traps (linkUp, linkDown) defined in IF-MIB and traps (cieLinkUp, cieLinkDown)
defined in CISCO-IF-EXTENSION-MIB.my are sent for an interface, if ifLinkUpDownTrapEnable
(defined in IF-MIB) is enabled for that interface. Only the varbinds defined in the trap definition are
sent with the linkUp and linkDown traps.
•
IETF extended cisco—Traps (linkUp, linkDown) defined in IF-MIB and traps (cieLinkUp,
cieLinkDown) defined in CISCO-IF-EXTENSION-MIB.my are sent for an interface, if
ifLinkUpDownTrapEnable (defined in IF-MIB) is enabled for that interface. In addition to the
varbinds defined in the linkUp and linkDown trap definition, varbinds defined in the IF-MIB
specific to the Cisco Systems implementation are sent with the linkUp and linkDown traps.
Note
For more information on the varbinds defined in the IF-MIB specific to the Cisco Systems
implementation, refer to the
Cisco MDS 9000 Family MIB Quick Reference.
Examples
The following example enables all the SNMP notifications listed in the Syntax Description table.
switch#
config terminal
Release
Modification
2.0(1b)
This command was introduced.
2.1(2)
•
Added the
link
option.
•
Renamed the
standard
option to
ietf
.
•
Renamed the
standard-extended
option to
ietf-extended
.