clear spanning-tree counters
To clear the spanning-tree counters, use the clear spanning-tree counters command in privileged EXEC
mode.
clear spanning-tree counters [interface interface-id]
Syntax Description
(Optional) Clears all spanning-tree counters on the specified
interface. Valid interfaces include physical ports, VLANs, and port
channels.
The VLAN range is 1 to 4094.
interface interface-id
Command Default
None
Command Modes
Privileged EXEC
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
If the interface-id value is not specified, spanning-tree counters are cleared for all interfaces.
Examples
This example shows how to clear spanning-tree counters for all interfaces:
Device# clear spanning-tree counters
Related Commands
DescriptionCommand
Restarts the protocol migration process on the interface.
clear spanning-tree detected-protocols
Enables debugging of spanning-tree activities.
debug spanning-tree
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
293
clear spanning-tree counters