Configuring SNMP 311Configuring SNMP Notifications (Traps and Informs)Beginning in Privileged EXEC mode, use the following commands to allowthe switch to send SNMP traps and to configure which traps are sent.Command Purposeconfigure Enter Global Configuration modesnmp-server enable traps[acl | all | auto-copy-sw| captive-portalcp-type| dot1q | dvrmp | link |maclock | multiple-users | ospfospftype |ospfv3ospfv3type | pim| poe | snmpauthentication |spanning-tree | stack |vrrp]Specify the traps to enable. The captive portal, OSPF andOSPFv3 traps include several different traps that can beenabled. For more information, use the CLI commandhelp or see the CLI Command Reference.snmp-server filterfilter-name oid-tree {included| excluded}Configure a filter for SNMP traps and informs based onOIDs. Each OID is linked to a device feature or a featureaspect.•filter-name — Specifies the label for the filter record thatis being updated or created. The name is used toreference the record. (Range: 1-30 characters.)•oid-tree — Specifies the object identifier of the ASN.1subtree to be included or excluded from the view. Toidentify the subtree, specify a text string consisting ofnumbers, such as 1.3.6.2.4, or a word, such assystem. Replace a single subidentifier with the asterisk(*) wildcard to specify a subtree family; for example,1.3.*.4.• included — Indicates that the filter type is included.• excluded — Indicates that the filter type is excluded.