Specifications

2-795
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
snmp-server enable traps
snmp-server e nable traps
To enable SNMP notifications (traps or informs), use the snmp-server enable traps command. To
disable all SNMP notifications, use the no form of this command.
snmp-server enable traps [ fla sh [insertion | remov al ] | fru-c trl | port -sec urit y [trap-rate
trap-rate] | removal | stpx | vlancreate | vlandelete | vtp] [mac-notification [change | move |
threshold]
no snmp-server enable traps [flash [insertion | removal] | fru-ctrl | port-security [trap-rate
trap-rate] | removal | stpx | vlancreate | vlandelete | vtp] [mac-notification]
Syntax Description
Defaults SNMP notifications are disabled.
Command Modes Global configura tion mode
Usage Guidelines If you enter this command without an optio n, all notificatio n types controlled by thi s command are
enabled.
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-serve r hos t command to specify which host or hosts receive SNMP notifications. To send
notifications, you must configur e at least one snmp-server host command.
flash (Optional) Controls the SNMP FLASH trap notifications.
insertion (Optional) Controls the SNMP flash insertion trap notifications.
removal (Optional) Controls the SNMP flash removal trap notifications.
fru-ctrl (Optional) Controls the SNMP entity FRU control trap notifications.
port-sec uri ty (Optional) Controls the SNMP trap generation.
trap-rat e trap-rate (Optional) Sets the number of traps per second.
stpx (Optional) Controls all the traps defined in
CISCO-STP-EXTENSIONS-MIB notifications.
vlancreate (Optional) Controls the SNMP VLAN crea ted trap notifications.
vlandelete (Optional) Controls the SNM P VLAN deleted trap no tifications.
vtp (Optional) Controls the SNMP VTP trap notifications.
mac-notifi cat ion (Optional) Controls the SNMP MAC trap notifications.
change (Optional) Controls the SNMP MAC change trap notifications.
move (Optional) Controls the SNMP MAC move trap notifications.
threshold (Optional) Controls the SNMP MAC threshold trap notifications.