Cisco Catalyst 4500 Series Command Reference Manual page 1034

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

snmp-server enable traps
SNMP notifications can be sent as traps or inform requests. This command enables both traps and inform
requests for the specified notification types. To specify whether the notifications should be sent as traps
or informs, use the snmp-server host [traps | informs] command.
The snmp-server enable traps command is used in conjunction with the snmp-server host command.
Use the snmp-server host command to specify which host or hosts receive SNMP notifications. To send
notifications, you must configure at least one snmp-server host command.
This list of the MIBs is used for the traps:
Examples
This example shows how to send all traps to the host is specified by the name myhost.cisco.com using
the community string defined 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
clear mac-address-table dynamic
mac-address-table notification
show mac-address-table notification
snmp-server enable traps
snmp trap mac-notification change
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
2-976
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 notifications.
fru-ctrl—Controls the FRU control traps from the CISCO-ENTITY-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.
vlandelete—Controls SNMP VLAN deleted trap notifications.
vtp—Controls the VTP traps from the CISCO-VTP-MIB.
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
Description
Clears the dynamic address entries from the Layer 2 MAC
address table.
Enables MAC address notification on a switch.
Displays the MAC address table notification status and
history.
Enables SNMP notifications.
Enables SNMP MAC address notifications.
OL-27596 -01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents