snmp-server enable traps

Enables SNMP traps for various events.
Syntax
snmp-server enable traps event
no snmp-server enable traps event
Command Default

Traps are enabled by default.

Parameters
event
The event for which the traps should be enabled. Enables the traps for one of the following events:
authentication
Generates the trap when the authentication occurs.
cold-start
Generates the trap after a cold start.
fan-failure
Generates the trap when there is a fan failure and when the issue is resolved.
fan-speed-change
Generates the trap when there is a change in fan speed.
ikev2
Generates the trap for Internet Key Exchange Protocol, v2 (IKEv2) events.
ipsec
Generates the trap for Internet Protocol Security (IPsec) events.
link-down
Generates the trap when the link is down.
link-oam
Generates the trap for link OAM.
link-up
Generates the trap when the link is up.
mac-authentication
Generates the trap when a MAC address is added or deleted.
mac-notification
Generates the trap after a MAC authentication.
metro-ring
Generates the trap when there is a change in the Metro Ring configuration.
module-inserted
Generates the trap when a module is inserted.
module-removed
Generates the trap when a module is removed.
new-root

Generates a control STP trap for newRoot events, as defined in RFC 1493.

nlp-phy-40g
Generates the trap during PHY calibration on the 40-Gbps and 4x10-Gbps stack ports.
power-supply-failure
Generates the trap when there is a power supply failure and when the issue is resolved.
syslog
Generates syslogMsgNotification traps.
temperature
Generates the trap when there is a temperature change.
topology-change
Generates the control STP trap topologyChange defined in RFC 1493 for topology changes.
udld
Generates the control enterprise traps for Unidirectional Link Detection (UDLD) events.
vsrp

Generates the control enterprise Virtual Switch Redundancy Protocol (VSRP) trap snTrapVsrpIfStateChange.

Modes

Global configuration mode

Usage Guidelines

The no form of the command disables the traps.

Examples

The following example enables SNMP traps on the device for MAC notification globally.

device# configure terminal
device(config)# snmp-server enable traps mac-notification
History
Release version Command history
08.0.10 The mac-notification keyword was added.
08.0.50 The ipsec and ikev2 keywords were added.
09.0.00a The keyword redundant-module was deprecated.