API Guide

Usage
Information
Clear all STP counters on the device per the Ethernet interface or port-channel.
Example
OS10# clear spanning-tree counters interface port-channel 10
Supported
Releases
10.2.0E or later
debug spanning-tree
Enables STP to debug and display protocol information.
Syntax
debug spanning-tree {all | bpdu [tx | rx] | events}
Parameters
all Debugs all spanning-tree operations.
bpdu Enter transmit (tx) or receive (rx) to enable the debug direction.
events Debugs STP events.
Default Not configured
Command Mode EXEC
Usage
Information
None
Example
OS10# debug spanning-tree bpdu rx
Supported
Releases
10.5.0 or later
errdisable detect cause bpduguard
Configures the port to be shut down or moves the port to blocked state on detecting a BPDU guard violation.
Syntax
errdisable detect cause bpduguard
Parameters None
Default Enabled
Command Mode CONFIGURATION
Usage
Information
This command applies only to STP-enabled ports. The command takes effect only when the BPDU guard
is configured on a port.
When the detect cause option is enabled, the port is shut down whenever there is a BPDU guard
violation.
When the option is disabled, the port is not shut down but moved to BLOCKING state whenever there is
a BPDU guard violation. In this case, the port is operationally DOWN in spanning-tree mode and when the
recovery timer expires after 300 seconds, the port is UP irrespective of the recovery cause configuration.
The no version of the command disables the detect cause option.
Example
OS10(config)# errdisable detect cause bpduguard
Supported
Releases
10.4.2.0 or later
Layer 2 473