CLI Reference Guide
SNMP Commands 1621
snmp-server enable traps
Use the snmp-server enable traps command in Global Configuration mode to
enable sending SNMP traps globally or to enable sending individual SNMP
traps. Use the no form of this command to disable sending SNMP traps
individually or globally.
Syntax
snmp-server enable traps [acl | all | auto-copy-sw | captive-portal
cp-type
|
dot1q | dvrmp | link | maclock | multiple-users | ospf
ospftype
| ospfv3
ospfv3type
|pim |poe | snmp authentication | spanning-tree | stack |vrrp]
no snmp-server enable traps [acl | all|auto-copy-sw | captive-portal
cp-type
| dot1q | dvrmp | link | maclock| multiple-users | ospf
ospftype
| ospfv3
ospfv3type
| pim | poe | snmp authentication | spanning-tree |stack|vrrp ]
• cp-type — {all, client-auth-failure, client-connect, client-db-full, client-
disconnect}
• ospftype— {all | errors { all | authentication failure | bad packet | config
error | virt authentication failure | virt bad packet | virt config error } | lsa
{ all | lsa-maxage | lsa-originate } | overflow { all | lsdb-overflow |
lsdbapproaching- overflow } | retransmit {all | packets | virt-packets } |
state-change { all | if state change | neighbor state change | virtifstate
change | virtneighbor state change }}
• ospfv3type—{all | errors { all | bad packet | config error | virt bad packet
| virt config error } | lsa { all | lsa-maxage | lsa-originate } | overflow { all
| lsdb-overflow | lsdb-approaching-overflow } | retransmit {all | packets |
virt-packets } | state-change { all | if state change | neighbor state change
| virtif state change | virtneighbor state change }}
•
acl
—Enable traps on ACL match events.
•
all
—Enable all traps (not recommended).
•
auto-copy-sw
—Enable traps on automatic download of switch software.
•
captive-portal
—Enable captive-portal traps.
•
dot1q
—Enable traps on VLAN configuration failures.
•
dvmrp
—Enable dvmrp traps.
•
maclock
—Enable traps on MAC locking violations.
2CSNXXX_SWUM200.book Page 1621 Tuesday, December 10, 2013 1:22 PM










