Specifications
2-796
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
snmp-server enable traps
This list of the MIBs is used for the traps:
• flash—Controls SNMP FLASH traps from the CISCO-FLASH-MIB.
–
insertion—Controls the SNMP Flash insertion trap notifications.
–
removal—Controls the SNMP Flash removal trap n otifications.
• fru-ctrl—Controls the FRU control traps from the CISCO-ENTI TY-FRU-CONTROL-MIB.
• port-security—Controls the port-security traps from the CISCO-PORT-SECURITY-MIB.
• stpx—Controls all the traps from the CISCO-STP-EXTENSIONS-MIB.
• vlancreate—Controls SNMP VLAN created trap notifications.
• vl andelete—Controls SNMP VLAN deleted trap notifications.
• vtp—Controls the VTP traps from the CISCO-VTP-MIB.
Examples This example shows how to send all traps to the host is specified by the name myhost.cisco.com using
the community string define d as public:
Switch(config)# snmp-server enable traps
Switch(config)# snmp-server host myhost.cisco.com public
Switch(config)#
This example shows how to enable the MAC address change MIB notification:
Switch(config)# snmp-server enable traps mac-notification change
Switch(config)#
SNMP traps can be enabled with a rate-limit to detect port-security violations due to restrict mode. The
following example shows how to enable traps for port-security with a rate of 5 traps per second:
Switch(config)# snmp-server enable traps port-security trap-rate 5
Switch(config)#
Related Commands Command Description
clear mac-address-table dynamic Clears the dynamic address entries from the Layer 2 MAC
address table.
mac-address-table notification Enables MAC address notification on a switch.
show mac-address-table notification Displays the MAC address table notification status and
history.
snmp-server enable traps Enables SNMP notifications.
snmp trap mac-notification change Enables SNMP MAC address notifications.