S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
2-14
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
clear spanning-tree counters
clear spanning-tree counters
To clear the counters for the Spanning Tree Protocol (STP), use the
clear spanning-tree counters
command.
clear spanning-tree counters
[
interface
{
ethernet
interface
|
port-channel
channel
}]
[
vlan
vlan-id
]
Syntax Description
Command Default
None
Command Modes
EXEC mode
Command History
Usage Guidelines
You can clear all the STP counters on the entire switch, per VLAN, or per interface.
Examples
This example shows how to clear the STP counters for VLAN 5:
switch#
clear
spanning-tree counters vlan 5
Related Commands
interface
(Optional) Specifies the interface type.
ethernet
interface
Slot and port number.
port-channel
channel
EtherChannel
number.
vlan
vlan-id
(Optional) Specifies the VLAN. The range is from 1 to 4094.
Release
Modification
4.0(0)N1(1a)
This command was introduced.
Command
Description
show spanning-tree
Displays information about the spanning tree state.