2-432
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
snmp-server enable traps
Note Though visible in the command-line help strings, the flash insertion and flash removal keywords are
not supported. The snmp-server enable informs command is not supported. To enable sending of
SNMP inform notifications, use the snmp-server enable traps command combined with the
snmp-server host host-addr informs command..
Defaults The sending of SNMP traps is disabled.
Command Modes Global configuration
Command History
Usage Guidelines Specify the host (NMS) that receives the traps by using the snmp-server host global configuration
command. If no trap types are specified, all trap types are sent.
Use the snmp-server enable traps command to enable sending of traps or informs, when supported.
Note Informs are not supported in SNMPv1.
To enable more than one type of trap, you must enter a separate snmp-server enable traps command
for each trap type.
Examples This example shows how to send EnvMon traps to the NMS:
linkup (Optional) Enable SNMP linkup traps.
warmstart (Optional) Enable SNMP warmstart traps.
stpx (Optional) Enable SNMP STPX MIB traps.
syslog (Optional) Enable SNMP syslog traps.
vlan-membership (Optional) Enable SNMP VLAN membership traps.
vlancreate (Optional) Enable SNMP VLAN-created traps.
vlandelete (Optional) Enable SNMP VLAN-deleted traps.
vtp (Optional) Enable VLAN Trunking Protocol (VTP) traps.
Release Modification
12.1(6)EA2 This command was introduced.
12.1(9)EA1 The vlan-membership keyword was added.
12.1(12c)EA1 The envmon, fan, shutdown, supply, temperature, and voltage keywords
were added. The alarm keyword was also added (only available on a
Catalyst 2955 switch).
12.1(13)EA1 The port-security and trap-rate keywords were added.
12.1(14)EA1 The authentication, bridge, coldstart, copy-config, flash, linkdown,
linkup, stpx, vlancreate, vlandelete, and warmstart keywords were added.