display stp history
Use display stp history to display port role calculation history.
Syntax
display stp [ instance instance-list | vlan vlan-id-list ] history [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-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 an IRF member device by its member ID. If you do not specify a member device, this command displays port role calculation history for all member devices.
Usage guidelines
In STP or RSTP mode, the 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.
If you do not specify a VLAN, this command applies to all VLANs.
If you specify a VLAN list, this command applies to the specified VLANs.
In MSTP mode, the command output is sorted by MSTI ID and by port role calculation time in each MSTI.
If you do not specify an MSTI, this command applies to all MSTIs.
If you specify an MSTI list, this command applies to the specified MSTIs.
Examples
# In MSTP mode, display the port role calculation history for IRF member device 1 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 PVST mode, display the port role calculation history for IRF member device 1 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 33: 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. |