> ## Content Index
> Fetch the complete content index at: https://www.pinglabz.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# STP Toolkit Reference: Every show and debug Command You Need
- URL: https://www.pinglabz.com/stp-show-debug-commands-reference/
- Published: 2026-03-27T05:16:14.000Z
- Updated: 2026-07-04T23:02:15.000Z
- Description: Troubleshooting STP requires knowledge of dozens of show and debug commands. This article provides a reference for every relevant command in Cisco IOS XE, with annotations explaining what each output means and when to use it.
- Author: Jaime
- Tags: STP, #Import 2026-08-01 19:54

## Essential STP Show Commands Quick Reference

This article is a comprehensive reference for STP show and debug commands. Each section includes:

New to STP? Start with the [full spanning-tree guide](https://www.pinglabz.com/spanning-tree-protocol/), then come back here for the deep dive.

- Command syntax
- Sample output from real deployments
- Interpretation of each field
- When and why to use the command
- Troubleshooting tips

### show spanning-tree \[vlan VLAN-ID\]

Basic STP status for a VLAN. Shows root bridge, this switch's bridge ID, and all port roles/statuses.

**Usage:** First command to run on any switch to understand its STP position.

### show spanning-tree summary

Compact summary of all VLANs and STP mode. Shows which VLANs have this switch as root, global PortFast and BPDU Guard settings.

**Usage:** Quick check of global STP configuration.

### show spanning-tree root

Roots bridge ID and path cost for each VLAN. Cost 0 means this switch is root.

**Usage:** Verify intended root bridge is in place.

### show spanning-tree interface Gi1/0/1 \[detail\]

Detailed STP state for a specific port: role, status, cost, timers, BPDU counts, guard status.

**Usage:** Investigate unexpected port behavior.

### show spanning-tree inconsistentports

Ports blocked by Root Guard or Loop Guard. Shows why port is blocked (Root/Loop Inconsistent).

**Usage:** When a port suddenly stops forwarding.

### debug spanning-tree events

Log all STP topology changes, BPDU receptions, port transitions in real time.

**Usage:** Watch convergence during link changes or troubleshoot topology instability.

### debug spanning-tree bpdu

Log every BPDU sent/received. Verbose - shows raw BPDU details.

**Usage:** Deep diagnosis of silent link failures or erratic topology calculations.

## Related STP Articles

- [Troubleshooting STP Loops and Broadcast Storms on Cisco Switches](https://www.pinglabz.com/troubleshoot-stp-loops-broadcast-storms/)
- [Troubleshooting STP Root Bridge Issues: Wrong Root, Unexpected Topology Changes](https://www.pinglabz.com/troubleshoot-stp-root-bridge-issues/)
- [Troubleshooting STP Convergence Problems and Slow Failover](https://www.pinglabz.com/troubleshoot-stp-convergence-slow-failover/)
- [Troubleshooting Errdisable and STP Guard Features](https://www.pinglabz.com/troubleshoot-errdisable-stp-guard/)
- [STP Configuration Checklist: Hardening Spanning Tree Before Go-Live](https://www.pinglabz.com/stp-hardening-checklist-go-live/)