Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
3-18
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 3 Ethernet Show Commands
show spanning-tree
show spanning-tree
To display information about the Spanning Tree Protocol (STP), use the show spanning-tree command.
show spanning-tree [blockedports | inconsistentports | pathcost method]
Syntax Description
Command Default None
Command Modes EXEC mode
Command History
Usage Guidelines The STP port type displays only when you have configured the port as either an STP edge port or an STP
network port. If you have not configured the STP port type, no port type displays.
Examples This example shows how to display spanning tree information:
switch# show spanning-tree
This example shows how to display the blocked ports in spanning tree:
switch(config)# show spanning-tree blockedports
This example shows how to determine if any ports are in any STP--inconsistent state:
switch# show spanning-tree inconsistentports
This example shows how to display the path cost method:
switch(config)# show spanning-tree pathcost method
blockedports (Optional) Displays the alternate ports blocked by STP.
inconsistentports (Optional) Displays the ports that are in an inconsistent STP state.
pathcost method (Optional) Displays whether short or long path cost method is used. The
method differs for Rapid PVST+ (configurable, default is short) and MST
(nonconfigurable, operational value is always long).
Release Modification
4.0(0)N1(1a) This command was introduced.