show spantree portstate

Use this command to display the state (blocking, forwarding, etc.) for a port on one or more Spanning Trees.

Syntax

show spantree portstate [port port-string] [sid sid]

Parameters

port port-string (Optional) Displays the Spanning Tree state for specific Spanning Tree 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 state for a specific Spanning Tree identifier. Valid values are 0 - 4094. If not specified, SID 0 is assumed.

Defaults

  • If port-string is not specified, current state will be displayed for all Spanning Tree ports.
  • If sid is not specified, current port state will be displayed for Spanning Tree 0.

Mode

All command modes.

Example

This example shows how to display the Spanning Tree state for ge.1.7:

System(rw)->show spantree portstate port ge.1.7
Port ge.1.7 has a Port State of Forwarding on SID 0