Specifications

Table Of Contents
snmp-server enable traps (MPLS)
MP-793
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
Defaults If you issue this command on an LSR without specifying any notification-type keywords, the default
behavior of the LSR is to enable all notification types controlled by the command (some notification
types cannot be controlled by means of this command).
Command Modes Global configuration
Command History
Usage Guidelines To configure an LSR to send SNMP LDP notifications, you must issue at least one s
nmp-server enable
traps command on the router.
To configure an LSR to send either notifications (traps) or informs to a designated network management
sta
tion (NMS), you must issue the snmp-server host command on that device, using the keyword (traps
or informs) that suits your purposes.
If you issue the s
nmp-server enable traps command without keywords, all SNMP notification types are
enabled on the LSR. If you issue this command with specific keywords, only the notification types
associated with those particular keywords are enabled on the LSR.
The s
nmp-server enable traps command is used in conjunction with the snmp-server host command.
You use the latter command to specify the NMS host (or hosts) targeted as the recipient(s) of the SNMP
notifications generated by SNMP-enabled LSRs in the network. To enable an LSR to send such
notifications, you must issue at least one snmp-server host command on the LSR.
Examples In the following example, the router is enabled to send all notifications to the host specified as
my
host.cisco.com. The community string is defined as public.
Router(config)# snmp-server enable traps
Router(config)# snmp-server host myhost.cisco.com public
Release Modification
11.1 This command was introduced.
11.3 The s
nmp-server enable traps snmp authentication form of this command
was introduced to replace the snmp-server trap-authentication command.
12.0(17)ST The mpls
traffic-eng keyword was added to define a class or family of
specific SNMP notifications for use with the notification-type and
notification-option parameters of the snmp-server enable traps command.
12.0(21)ST The mpls ldp
keyword was added to define a class or family of specific
SNMP notifications for use with the notification-type and
notification-option parameters of the snmp-server enable traps command.
12.0(22)S This command was integrated into Cisco IOS Release 12.0(22)S.
12.2(18)S This command was integrated into Cisco IOS Release 12.2(18)S.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.4(11)T This command was integrated into Cisco IOS Release 12.4(11)T.
12.2(31)SB2 This command was integrated into Cisco IOS Release 12.2(31)SB2.
12.2(33)SXH This command was integrated into Cisco IOS Release 12.2(33)SXH.