show spantree portcost

Use this command to display cost values assigned to one or more Spanning Tree ports.

Syntax

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

Parameters

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

Defaults

  • If port-string is not specified, port cost will be displayed for all Spanning Tree ports.
  • If sid is not specified, port cost will be displayed for all Spanning Trees.

Mode

All command modes.

Example

This example shows how to display the port cost for ge.2.5:

System(rw)->show spantree portcost port ge.2.5
Port ge.2.5 has a Port Path Cost of 2000000 on SID 0