532
Configuring SNMP
Information About SNMP
Community Strings
You use the SNMP community string to define the relationship between the SNMP manager and the agent. The
community string acts like a password to permit access to the agent on the switch. Optionally, you can specify one or
more of these characteristics associated with the string:
An access list of IP addresses of the SNMP managers that are permitted to use the community string to gain access
to the agent
A MIB view, which defines the subset of all MIB objects accessible to the given community
Read and write or read-only permission for the MIB objects accessible to the community
SNMP Notifications
A trap manager is a management station that receives and processes traps. Traps are system alerts that the switch
generates when certain events occur. By default, no trap manager is defined, and no traps are sent. Switches running
this Cisco IOS release can have an unlimited number of trap managers.
Note: Many commands use the word traps in the command syntax. Unless there is an option in the command to select
either traps or informs, the keyword traps refers to traps, informs, or both. Use the snmp-server host global
configuration command to specify whether to send SNMP notifications as traps or informs.
This table describes the supported switch traps (notification types). You can enable any or all of these traps and configure
a trap manager to receive them. To enable the sending of SNMP inform notifications, use the snmp-server enable traps
global configuration command combined with the snmp-server host host-addr informs global configuration command.
Table 54 Switch Notification Types
Notification Type
Keyword
Description
bridge Generates STP bridge MIB traps.
config Generates a trap for SNMP configuration changes.
copy-config Generates a trap for SNMP copy configuration changes.
entity Generates a trap for SNMP entity changes.
cpu threshold Allows CPU-related traps.
envmon Generates environmental monitor traps. You can enable any or all of these environmental traps: fan,
shutdown, status, supply, temperature.
errdisable Generates a trap for an error-disabled VLAN port. You can also set a maximum trap rate per minute.
The range is from 0 to 10000; the default is 0, which means there is no rate limit.
flash Generates SNMP FLASH notifications.
hsrp Generates a trap for Hot Standby Router Protocol (HSRP) changes.
ipmulticast Generates a trap for IP multicast routing changes.
mac-notification Generates a trap for MAC address notifications.
msdp Generates a trap for Multicast Source Discovery Protocol (MSDP) changes.
ospf Generates a trap for Open Shortest Path First (OSPF) changes. You can enable any or all of these
traps: Cisco specific, errors, link-state advertisement, rate limit, retransmit, and state changes.
pim Generates a trap for Protocol-Independent Multicast (PIM) changes. You can enable any or all of
these traps: invalid PIM messages, neighbor changes, and rendezvous point (RP)-mapping
changes.