Enabling traps and viewing trap configuration

Syntax

spanning-tree trap {errant-bpdu | loop-guard | new-root | root-guard}
no spanning-tree trap {errant-bpdu | loop-guard | new-root | root-guard}

Enables SNMP traps. The no form of the command disables SNMP traps.

Syntax


show spanning-tree traps

Displays the current spanning tree trap configuration on the switch.

Viewing spanning tree traps in their 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