show spantree debug

Use this command to display Spanning Tree debug counters for one or more ports.

Syntax

show spantree debug [port port-string] [sid sid] [active]

Parameters

port port-string (Optional) Displays debug counters for specific port(s). For a detailed description of possible port-string values, refer to Port String Syntax Used in the CLI in the S-, K-, and 7100 Series Configuration Guide.
sid sid (Optional) Displays the debug counters for a specific Spanning Tree identifier. Valid values are 0 - 4094. If not specified, SID 0 is assumed.
active (Optional) Displays only the debug counters for ports that have received at least one configuration or RSTP BPDU.

Defaults

  • If port-string is not specified, no port information will be displayed.
  • If sid is not specified, debug counters will be displayed for Spanning Tree 0.

Mode

All command modes.

Example

This example shows how to display Spanning Tree debug counters for link aggregation port 1, SID 0:

System(rw)->show spantree debug port lag.0.1
SID: 0, Bridge ID: 80-00-00-01-f4-5b-5e-8f, Time Since TC: 00 days 00:42:49
Root Priority Vector
------------------------------------------------------------
Root ID                      - 40-00-00-e0-63-93-74-a7
External Cost                - 66666
Regional Root ID             - 80-00-00-01-f4-5b-5e-8f
Internal Cost                - 0
Designated Bridge ID         - 40-00-00-e0-63-93-74-a7
Designated Port              - 8700
Receive Port                 - 8002      (lag.0.1)
Alternate Ports          Designated Bridge
------------------------------------------------------------
(none)
Ports with Received TC BPDUs         Count
------------------------------------------------------------
lag.0.1                                  2
ge.4.10                                  4
Ports with Message Age Expired       Count
------------------------------------------------------------
(none)
Ports with Exceptional Condition    Reason
------------------------------------------------------------
(none)
STP Diagnostic Common Counters
------------------------------------------------------------
Topology Change Count        - 2
Message Expiration Count     - 0
Invalid BPDU Count           - 0
Disputed BPDU Count          - 0
STP BPDU Rx Count            - 0
STP BPDU Tx Count            - 0
STP TCN BPDU Rx Count        - 0
STP TCN BPDU Tx Count        - 0
STP TC BPDU Rx Count         - 0
STP TC BPDU Tx Count         - 0
RST BPDU Rx Count            - 0
RST BPDU Tx Count            - 0
RST TC BPDU Rx Count         - 0
RST TC BPDU Tx Count         - 0
MST BPDU Rx Count            - 2582
MST BPDU Tx Count            - 2592
MST CIST TC BPDU Rx Count    - 6
MST CIST TC BPDU Tx Count    - 6
STP Diagnostic Root History Table for SID 0
------------------------------------------------------------
Index       Root Bridge ID          Date       Time
------------------------------------------------------------
01     40-00-00-e0-63-93-74-a7   07-07-2009, 09:50:56
02     00-00-00-00-00-00-00-00   07-07-2009, 09:50:19
STP Port Data for SID 0 Port lag.0.1
------------------------------------------------------------
Role                         - root
State                        - forwarding
NonFwd Reason                - none
Edge Port                    - false
Boundary Port                - true
Root ID                      - 40-00-00-e0-63-93-74-a7
External Cost                - 0
Regional Root ID             - 40-00-00-e0-63-93-74-a7
Internal Cost                - 0
Designated Bridge ID         - 40-00-00-e0-63-93-74-a7
Designated Port              - 8700
Port Id                      - 8002
Forward Transitions Count    - 1
STP Diagnostic Port Counters for SID 0 Port lag.0.1
------------------------------------------------------------
Message Expiration Count     - 0
Invalid BPDU Count           - 0
Disputed BPDU Count          - 0
STP BPDU Rx Count            - 0
STP BPDU Tx Count            - 0
STP TCN BPDU Rx Count        - 0
STP TCN BPDU Tx Count        - 0
STP TC BPDU Rx Count         - 0
STP TC BPDU Tx Count         - 0
RST BPDU Rx Count            - 0
RST BPDU Tx Count            - 0
RST TC BPDU Rx Count         - 0
RST TC BPDU Tx Count         - 0
MST BPDU Rx Count            - 1287
MST BPDU Tx Count            - 4
MST CIST TC BPDU Rx Count    - 2
MST CIST TC BPDU Tx Count    - 2