Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show spanning-tree statistics

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show spanning-tree statistics
<brief | detail>
<interface interface-name>
<routing-instance routing-instance-name>

Syntax (EX Series and QFX Series)

content_copy zoom_out_map
show spanning-tree statistics
<brief | detail>
<interface interface-name | vlan vlan-id>

Syntax (EX Series)

content_copy zoom_out_map
show spanning-tree statistics
interface interface-name
vlan vlan-id
<brief | detail>

Description

Display STP statistics.

Options

none

Display brief STP statistics.

brief | detail

(Optional) Display the specified level of output.

interface interface-name

(Optional) Display STP statistics for the specified interface.

routing-instance routing-instance-name

(Optional) Display STP statistics for the specified routing instance.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show spanning-tree statistics command. Output fields are listed in the approximate order in which they appear.

Table 1: show spanning-tree statistics Output Fields

Field Name

Field Description

Message type

Type of message being counted.

BPDUs sent

Total number of BPDUs sent.

BPDUs received

Total number of BPDUs received.

BPDUs sent in last interval

Number of BPDUs sent within a specified interval.

BPDUs received in last interval

Number of BPDUs received within a specified interval.

Interface

Interface for which the statistics are being displayed.

Next BPDU transmission

Number of seconds until the next BPDU is scheduled to be sent.

Sample Output

show spanning-tree statistics routing-instance

content_copy zoom_out_map
user@host> show spanning-tree statistics routing-instance vs1 detail
Routing instance level STP statistics
Message type                   : bpdus
BPDUs sent                     : 1396
BPDUs received                 : 1027
BPDUs sent in last interval    : 5        (duration: 4 sec)
BPDUs received in last interval: 4        (duration: 4 sec)

show spanning-tree statistics interface routing-instance detail

content_copy zoom_out_map
user@host> show spanning-tree statistics interface ge-11/1/4 routing-instance vs1 detail
Interface   BPDUs sent   BPDUs received      Next BPDU
                                            transmission
ge-11/1/4            7           190                0

Release Information

Command introduced in Junos OS Release 8.4.

footer-navigation