display stp history

Use display stp history to display port role calculation history.

Syntax

In standalone mode:

display stp [ instance instance-list | vlan vlan-id-list ] history [ slot slot-number ]

In IRF mode:

display stp [ instance instance-list | vlan vlan-id-list ] history [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

instance instance-list: Specifies a space-separated list of up to 10 MSTI items. Each item specifies an MSTI or a range of MSTIs in the form of instance-id1 [ to instance-id2 ]. The value for instance-id2 must be equal to or greater than the value for instance-id1. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST.

vlan vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN or a range of VLANs in the form of vlan-id1 [ to vlan-id2 ]. The value for vlan-id2 must be equal to or greater than the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information for all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for all cards. (In IRF mode.)

Usage guidelines

In STP or RSTP mode, the command output is sorted by port role calculation time.

In PVST mode, the command output is sorted by VLAN ID and by port role calculation time in each VLAN.

In MSTP mode, the command output is sorted by MSTI ID and by port role calculation time in each MSTI.

Examples

# (In standalone mode.) In MSTP mode, display the port role calculation history on the specified slot in MSTI 2.

<Sysname> display stp instance 2 history slot 1
 --------------- STP slot 1 history trace ---------------
 -------------------  Instance 2   ---------------------
Port Ten-GigabitEthernet1/0/1
   Role change         : ROOT->DESI (Aged)
   Time                : 2009/02/08 00:22:56
   Port priority       : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1
   Designated priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1
 Port Ten-GigabitEthernet1/0/2
   Role change         : ALTER->ROOT
   Time                : 2009/02/08 00:22:56
   Port priority       : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2
                         128.153
   Designated priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2
                         128.153

# (In standalone mode.) In PVST mode, display the port role calculation history on the specified slot in VLAN 2.

<Sysname> display stp vlan 2 history slot 1
 --------------- STP slot 1 history trace ---------------
 -------------------  VLAN 2   ---------------------

 Port Ten-GigabitEthernet1/0/1
   Role change         : ROOT->DESI (Aged)
   Time                : 2009/02/08 00:22:56
   Port priority       : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1
   Designated priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1
 Port Ten-GigabitEthernet1/0/2
   Role change         : ALTER->ROOT
   Time                : 2009/02/08 00:22:56
   Port priority       : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2
   Designated priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2

Table 41: Command output

Field

Description

Port

Port name.

Role change

Role change of the port (Aged means that the change was caused by expiration of the received configuration BPDU).

Time

Time of port role calculation.