Configuring SNMP Notifications (Traps and Informs)
Beginning in Privileged EXEC mode, use the following commands to allow
the switch to send SNMP traps and to configure which traps are sent.
snmp-server enable traps
[acl | all | auto-copy-sw
| dot1q | dvrmp | link |
maclock | multiple-
users | ospf
| poe | snmp
spanning-tree | stack |
Enter Global Configuration mode
Specify the traps to enable. The captive portal, OSPF and
OSPFv3 traps include several different traps that can be
enabled. For more information, use the CLI command
help or see the CLI Command Reference.
Configure a filter for SNMP traps and informs based on
OIDs. Each OID is linked to a device feature or a feature
is being updated or created. The name is used to
reference the record. (Range: 1-30 characters.)
subtree to be included or excluded from the view. To
identify the subtree, specify a text string consisting of
numbers, such as
(*) wildcard to specify a subtree family; for example,
• included — Indicates that the filter type is included.
• excluded — Indicates that the filter type is excluded.
— Specifies the label for the filter record that
— Specifies the object identifier of the ASN.1
. Replace a single subidentifier with the asterisk
, or a word, such as