clear spanning-tree counter

Syntax

clear spanning-tree counter [ interface { ethernet slot/port | port-channel number } ]

Parameters

interface
Specifies an interface.
ethernet
Specifies an Ethernet interface.
slot
Specifies a valid slot number. Must be 0 if the switch does not contain slots.
port
Specifies a valid port number.
port-channel number
Specifies a port-channel.

Modes

Privileged EXEC mode

Usage Guidelines

If the interface parameter is not specified, spanning-tree counters are cleared for all interfaces.

Examples

To clear spanning-tree counters for all interfaces:

device# clear spanning-tree counter
 

To clear spanning-tree counters for an Ethernet interface:

device# clear spanning-tree counter interface ethernet 0/1
 

To clear spanning-tree counters for port-channel 23:

device# clear spanning-tree counter interface port-channel 23