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.
|
You can use the
snmp-server host
global configuration command for a specific host to
receive the notification types listed in the following table. You can enable
any or all of these traps and configure a trap manager to receive them.
Table 4. Device Notification Types
Notification Type Keyword |
Description |
bridge
|
Generates STP bridge MIB traps. |
cluster
|
Generates a trap when the cluster configuration changes. |
config
|
Generates a trap for SNMP configuration changes. |
copy-config
|
Generates a trap for SNMP copy configuration changes. |
cpu threshold
|
Allow CPU-related traps. |
entity
|
Generates a trap for SNMP entity changes. |
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 a port VLAN errdisabled. 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. In a switch stack, you can optionally enable notification for flash insertion or removal, which would cause a trap to be issued whenever
a switch in the stack is removed or inserted (physical removal, power cycle, or reload).
|
fru-ctrl
|
Generates entity field-replaceable unit (FRU) control traps. In the switch stack, this trap refers to the insertion or removal of a switch in the stack.
|
hsrp
|
Generates a trap for Hot Standby Router Protocol (HSRP) changes. |
ipmulticast
|
Generates a trap for IP multicast routing changes. |
ipsla
|
Generates a trap for the SNMP IP Service Level Agreements (SLAs). |
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.
|
port-security
|
Generates SNMP port security traps. You can also set a maximum trap rate per second. The range is from 0 to 1000; the default
is 0, which means that there is no rate limit.
Note
|
When you configure a trap by using the notification type port-security , configure the port security trap first, and then configure the port security trap rate:
|
-
snmp-server enable traps
port-security
-
snmp-server enable traps
port-security
trap-rate
rate
|
snmp
|
Generates a trap for SNMP-type notifications for authentication, cold start, warm start, link up or link down. |
storm-control
|
Generates a trap for SNMP storm-control. You can also set a maximum trap rate per minute. The range is from 0 to 1000; the
default is 0 (no limit is imposed; a trap is sent at every occurrence).
|
stpx
|
Generates SNMP STP Extended MIB traps. |
syslog
|
Generates SNMP syslog traps. |
tty
|
Generates a trap for TCP connections. This trap is enabled by default. |
vlan-membership
|
Generates a trap for SNMP VLAN membership changes. |
vlancreate
|
Generates SNMP VLAN created traps. |
vlandelete
|
Generates SNMP VLAN deleted traps. |
vtp
|
Generates a trap for VLAN Trunking Protocol (VTP) changes. |
Follow these steps
to configure the
switch
to send traps or informs to a host.
The
snmp-server
host command specifies which hosts receive the notifications. The
snmp-server enable
traps command globally enables the method for the specified
notification (for traps and informs). To enable a host to receive an inform,
you must configure an
snmp-server host
informs command for the host and globally enable informs by using
the
snmp-server enable
traps command.
To remove the
specified host from receiving traps, use the
no snmp-server host
host global configuration command. The
no snmp-server
host command with no keywords disables traps, but not informs, to
the host. To disable informs, use the
no snmp-server host
informs global configuration command. To disable a specific trap
type, use the
no snmp-server enable
traps
notification-types global configuration command.