2-415
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
snmp-server enable traps
snmp-server enable 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 [flash [insertion | removal] | fru-ctrl |
port-security [trap-rate trap-rate] | removal | stpx | vlancreate | vlandelete | vtp]
no snmp-server enable traps flash [insertion | removal] | fru-ctrl | port-security
[trap-rate trap-rate] | removal | stpx | vlancreate | vlandelete | vtp]
Syntax Description
Defaults SNMP notifications are disabled.
Command Modes Global configuration
Command History
Usage Guidelines If you enter this command without an option, all notification types controlled by this 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-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.
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-security (Optional) Controls the SNMP trap generation.
trap-rate 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 created trap notifications.
vlandelete (Optional) Controls the SNMP VLAN deleted trap notifications.
vtp (Optional) Controls the SNMP VTP trap notifications.
Release Modification
12.1(13)EW Support for this command was introduced on the Catalyst 4500 series switch.