Administrator Guide

Switch Management Commands 2125
Syntax
snmp-server enable traps [acl | all | auto-copy-sw | bgp state-changes
limited |buffers |captive-portal
cp-type
| cpu |dot1q | dvrmp | link | port-
security [trap-rate] | multiple-users | [vrf
vrf-name
] ospf
ospftype
| ospfv3
ospfv3type
|pim |poe | snmp authentication | spanning-tree | vrrp]
no snmp-server enable traps [acl | all|auto-copy-sw | bgp state-changes
limited |buffers | captive-portal
cp-type
| cpu | dot1q | dvrmp | link |
port-security [trap-rate]| multiple-users | [vrf
vrf-name
] ospf
ospftype
|
ospfv3
ospfv3type
| pim | poe | snmp authentication | spanning-tree |vrrp
]
cp-type — {all, client-auth-failure, client-connect, client-db-full, client-
disconnect}
vrf-name
—The name of a VRF instance for OSPF traps.
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.
bgp state-changes limited
—Enable the two traps defined in the standard
BGP MIB, RFC 4273. A trap is sent when an adjacency reaches the
ESTABLISHED state and when a backward adjacency state transition
occurs.
captive-portal
—Enable captive-portal traps.
dot1q
—Enable traps on VLAN configuration failures.
bgp state-changes limited
—Enable standard traps defined in RFC 4273.
2CSNXXX_SWUM204.book Page 2125 Monday, January 25, 2016 1:25 PM