This topic explains how to display and clear Spanning Tree status using various show and clear commands on active interfaces, VLANs, and portfast configurations.
Use these commands to display Spanning Tree status.
| Command | Description |
|---|---|
| show spanning-tree active | Displays Spanning Tree information on active interfaces only. |
| show spanning-tree detail | Displays a detailed summary of interface information. |
| show spanning-tree vlan vlan-id | Displays Spanning Tree information for the specified VLAN. |
| show spanning-tree interface interface-id | Displays Spanning Tree information for the specified interface. |
| show spanning-tree interface interface-id portfast | Displays Spanning Tree portfast information for the specified interface. |
| show spanning-tree summary [totals] | Displays a summary of interface states or displays the total number of lines in the STP state section. |
Use the clear spanning-tree [interface interface-id] command to clear Spanning Tree counters.