show spantree stats
13-6 Spanning Tree Configuration
show spantree stats
Use this command to display Spanning Tree information for one or more ports.
Syntax
show spantree stats [port port-string] [sid sid] [active]
Parameters
Defaults
If port-string is not specified, Spanning Tree information for all ports will be displayed.
If sid is not specified, information for Spanning Tree 0 will be displayed.
If active is not specified information for all ports will be displayed regardless of whether or not
they have received BPDUs.
Mode
Switch command, read-only.
Usage
Note that if the output of “show spantree stats active” includes an asterisk (*) following the word
“Discarding,” that indicates that the port is in discarding state because of Loop Protect.
Example
This example shows how to display the device’s Spanning Tree configuration:
C3(su)->show spantree stats
Spanning tree status - enabled
Spanning tree instance - 0
Designated Root MacAddr - 00-e0-63-9d-c1-c8
Designated Root Priority - 0
Designated Root Cost - 10000
Designated Root Port - lag.0.1
Root Max Age - 20 sec
Root Hello Time - 2 sec
Root Forward Delay - 15 sec
clear spantree autoedge 13-34
show spantree debug 13-34
clear spantree debug 13-35
For information about... Refer to page...
port port-string (Optional) Displays information for the specified port(s). For a detailed
description of possible port--string values, refer to “Port String Syntax Used
in the CLI” on page 11-1.
sid sid (Optional) Displays information for a specific Spanning Tree identifier. If
not specified, SID 0 is assumed.
active (Optional) Displays information for ports that have received STP BPDUs
since boot.