This command is used to display the configuration for Bridge Protocol Data Unit (BPDU) processing by one or more ports on a switch.

Syntax   stp-port-show

port port-list

Specify the switch network data port number, list of ports, or a range of ports. The range must be a port number between 1 to 64.

block off|on

Specify if the port blocks BPDUs.

filter off|on

Specify if the port filters BPDUs.


Specify if the port is enabled for PortFast. PortFast allows a port to enter the forwarding state almost immediately by dramatically decreasing the time of the listening and learning states.


Specify if the port is an Edge port. The port can transition directly to a forwarding state but lose Edge port status as soon as any BPDU packets are received.


Specify if BPDU guard is on or off.


Specify if root guard is on or off.

priority integer

Specify the STP port priority as a value between 0 and 240. The default value is 128.

cost number

Specify the cost as a number between 1 and 200000000. The default value is 2000.

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.


Display output in ascending order.


Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.


Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.


Display the number of entries in the output. This is useful with vRouter show commands.


Display full values in the output instead of scaled approximate values.


Display integer values instead of mapped values


Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

Defaults   None.

Access   CLI


Version 1.2

Command introduced.

Version 2.2

The parameter edge|no-edge added to support RSTP. The parameter, guard|no-guard, added.

Version 2.3

The parameter, cost, added.

Version 2.4.1

The parameter, priority, added.

Version 2.6.0

The parameter, guard, changed to bpdu-guard, and a new parameter, root-guard, added.

Usage   STP is a standard inter-switch protocol is used to ensure that an ad hoc network topology is loop-free at Layer 2, on a per VLAN basis. If your network connections form loops, and STP is disabled, packets recirculate between the switches and causes a decrease in network performance. If you are certain that your network is loop-free, you do not need to enable STP.  

Examples  To display configuration information, use the following command:

CLI network-admin@switch > stp-port-show port 17

switch: pubdev01

port:   55

block:  off

filter: off

edge:   yes

guard:  no

switch: pubdev01

port:   65

block:  off

filter: off

guard:  no

switch: pubdev01

port:   66

block:  off

filter: off

guard:  no


See Also