Specifications
2-257
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
snmp-server enable traps
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:
Switch(config)# snmp-server enable traps envmon fan
This example shows how to send VTP traps to the NMS:
Switch(config)# snmp-server enable traps vtp
You can verify your setting by entering the show vtp status privileged EXEC or the show
running-config privileged EXEC command.
Related Commands
Release Modification
12.1(6)EA2 This command was first 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 alarms keyword was added for Catalyst 2955 switches only.
Command Description
show running-config Displays the running configuration on the switch. For syntax information,
select Cisco IOS Configuration Fundamentals Command Reference for
Release 12.1 > Cisco IOS File Management Commands > Configuration
File Commands.
snmp-server host Specifies the host that receives SNMP traps.