Reference Guide

Table Of Contents
View RPVST+ global parameters
OS10# show spanning-tree active
Spanning tree enabled protocol rapid-pvst with force-version rstp
VLAN 1
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 32769, Address 90b1.1cf4.a523
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 32769, Address 90b1.1cf4.a523
We are the root of VLAN 1
Configured hello time 2, max age 20, forward delay 15
RPVST+ commands
clear spanning-tree counters
Clears the counters for STP.
Syntax
clear spanning-tree counters [interface {ethernet node/slot/port[:subport]
| portchannel number}}]
Parameters
interface Enter the interface type:
ethernet node/slot/port[:subport] Deletes the spanning-tree counters from a
physical port.
port-channel number Deletes the spanning-tree counters for a port-channel interface (1
to 128).
Default Not configured
Command Mode EXEC
Usage
Information
Clear all STP counters on the device per Ethernet interface or port-channel.
Example
OS10# clear spanning-tree counters interface port-channel 10
Supported
Releases
10.2.0E or later
clear spanning-tree detected-protocol
Forces the MST ports to renegotiate with neighbors.
Syntax
clear spanning-tree detected-protocol [interface {ethernet node/slot/
port[:subport] | port-channel number}]
Parameters
interface Enter the interface type:
ethernet node/slot/port[:subport] Enter the Ethernet interface information (1 to
48).
port-channel number Enter the port-channel number (1 to 128).
Default Not configured
Command Mode EXEC
Usage
Information
Use this command to force the RPVST+ port to re-negotiate with neighbors. If you use this command
without parameters, the command applies to each device port.
Example
OS10# clear spanning-tree detected-protocol interface ethernet 1/1/1
Supported
Release
10.2.0E or later
Layer 2 217