124
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter C 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 slot/[QSFP-module/]port | 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 slot/[QSFP-module/]port Specifies the Ethernet interface slot and port number. The
slot number is from 1 to 255. The QSFP-module number is
from 1 to 4. The port number is from 1 to 128.
Note The QSFP-module number applies only to the
QSFP+ Generic Expansion Module (GEM).
port-channel channel Specifies the EtherChannel number. The number range is
from 1 to 4096.
vlan vlan-id (Optional) Specifies the VLAN. The range is from 1 to
3967 and from 4049 to 4093.
Release Modification
6.0(2)N1(1) Support for the QSFP+ GEM was added.
5.2(1)N1(1) This command was introduced.
Command Description
show spanning-tree Displays information about the spanning tree state.