Enabling traps and displaying trap configuration
Syntax:
spanning-tree trap [ errant-bpdu | loop-guard | new-root topology-change [vlan < vid-list >| instance [instance-ID] {cstt} | root-guard ]
no spanning-tree trap [ errant-bpdu | loop-guard | new-root topology-change [vlan < vid-list >| instance [instance-ID] {cstt} | root-guard ]
Enables or disables SNMP traps for errant-BPDU, loop guard, new root, and root guard event notifications.
errant-bpdu
Enables SNMP notification when an errant BPDU is received. Designed for use with BPDU filtering (see Configuring BPDU filtering).
loop-guard
Enables SNMP notification when a loop guard inconsistency is detected. Designed for use with the Loop Guard option (see Configuring STP loop guard).
new-root
Enables SNMP notification when a new root is elected on any VLAN configured for RPVST+ on the switch.
topology-change
Enables notifications sent when a topology change occurs.
topology-change-history
Shows the spanning tree topology history changes.
root-guard
Enables SNMP notifications when a root-guard inconsistency is detected.
Default for all of the above options: Disabled
The
no
form of the command disables traps on the switch.
Syntax:
show spanning-tree traps
Displays the current spanning tree trap configuration on the switch.
Displaying spanning tree traps in the default configuration
switch# show spanning-tree traps Status and Counters - STP Traps Information Trap Name | Status ---------------------- + -------- errant-bpdu | Disabled new-root | Disabled root-guard | Disabled loop-guard | Disabled