Commands For Monnitor And Debug

4.2 Commands for Monitor and Debug

4.2.1 debug spanning-tree

Command: debug spanning-tree
no debug spanning-tree
Function: Enable MSTP debugging. The no command disables MSTP debugging.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: This command is the general command for all MSTP debugging. Users should enable detailed debugging, and then use this command to display the relevant debugging information. In general, this command is used by skilled technicians.
Example: Enable to receive the debugging information of BPDU messages on port1/0/1.

active500EM#debug spanning-tree
active500EM#debug spanning-tree bpdu rx interface ethernet 1/0/1

 

4.2.2 show mst-pending

Command: show mst-pending
Function: Display the configuration of the current MSTP region.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: This command will display the configuration of the current MSTP region, including MSTP name, revision, as well as VLAN and instance mapping. Note: Before quitting the MSTP Region Mode, the displayed parameters may not be effective.
Example: Display the configuration of the current MSTP region.

active500EM(config)#spanning-tree mst configuration
active500EM(config-mstp-region)#show mst-pending
Name         activeARC
Revision     0
Instance     Vlans Mapped
----------------------------------
00           1-29, 31-39, 41-4093
03           30
04           40
05           4094
----------------------------------

 

4.2.3 show spanning-tree

Command: show spanning-tree [mst [<instance-id>]] [interface <interface-list>] [detail] Function: Display the MSTP Information.
Parameters:

  • <instance-id>: sets the instance ID. The valid range is from 0 to 64.
  • <interface-list>: sets the interface list.
  • detail: sets the detailed spanning-tree information.

Command mode: Admin and Configuration Mode
Default: None
Usage guide: This command can display the MSTP information of the instances in the current bridge.
Example Display the MSTP bridge.

active500EM#active500EM#show spanning-tree
                 -- MSTP Bridge Config Info --
Standard     :  IEEE 802.1s
Bridge MAC   :  00: 03: 0f: 01: 0e: 30
Bridge Times :  Max Age 20, Hello Time 2, Forward Delay 15
Force Version:  3
########################### Instance 0 ###########################
Self Bridge Id   : 32768 -  00: 03: 0f: 01: 0e: 30
Root Id          : 16384.00: 03: 0f: 01: 0f: 52
Ext.RootPathCost : 200000
Region Root Id   : this switch
Int.RootPathCost : 0
Root Port ID     : 128.1
Current port list in Instance 0:
Ethernet1/0/1 Ethernet1/0/2 (Total 2)
 PortName       ID      ExtRPC    IntRPC   State Role     DsgBridge      DsgPort
-------------- ------- --------- --------- ---  ---- ------------------ -------
Ethernet1/0/1  128.001         0         0 FWD  ROOT 16384.00030f010f52 128.007
Ethernet1/0/2  128.002         0         0 BLK  ALTR 16384.00030f010f52 128.011
########################### Instance 3 ###########################
Self Bridge Id   : 0.00: 03: 0f: 01: 0e: 30
Region Root Id   : this switch
Int.RootPathCost : 0
Root Port ID     : 0
Current port list in Instance 3:
Ethernet1/0/1 Ethernet1/0/2 (Total 2)
 PortName       ID      IntRPC  State Role     DsgBridge      DsgPort
-------------- ------- --------- ---  ---- ------------------ -------
Ethernet1/0/1  128.001         0 FWD  MSTR  0.00030f010e30    128.001
Ethernet1/0/2  128.002         0 BLK  ALTR  0.00030f010e30    128.002
########################### Instance 4 ###########################
Self Bridge Id   : 32768.00: 03: 0f: 01: 0e: 30
Region Root Id   : this switch
Int.RootPathCost : 0
Root Port ID     : 0
Current port list in Instance 4:
Ethernet1/0/1 Ethernet1/0/2 (Total 2)
 PortName       ID      IntRPC  State Role     DsgBridge      DsgPort
-------------- ------- --------- ---  ---- ------------------ -------
Ethernet1/0/1  128.001         0 FWD  MSTR 32768.00030f010e30 128.001
Ethernet1/0/2  128.002         0 BLK  ALTR 32768.00030f010e30 128.002
Displayed Information Description
Bridge Information
Standard STP version
Bridge MAC Bridge MAC address
Bridge Times Max Age, Hello Time and Forward Delay of the bridge
Force Version Version of STP
Instance Information
Self Bridge Id The priority and the MAC address of the current bridge for the current instance
Root Id The priority and the MAC address of the root bridge for the current instance
Ext.RootPathCost Total cost from the current bridge to the root of the entire network
Int.RootPathCost Cost from the current bridge to the region root of the current instance
Root Port ID Root port of the current instance on the current bridge
MSTP Port List Of The Current Instance
PortName Port name
ID Port priority and port index
ExtRPC Port cost to the root of the entire network
IntRPC Cost from the current port to the region root of the current instance
State Port status of the current instance
Role Port role of the current instance
DsgBridge Upward designated bridge of the current port in the current instance
DsgPort Upward designated port of the current port in the current instance

 

4.2.4 show spanning-tree mst config

Command: show spanning-tree mst config
Function: Display the MSTP configuration.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: This command shows the parameters of the MSTP configuration, including MSTP name, revision, as well as VLAN and instance mapping.
Example: Display the configuration of the MSTP on the switch.

active500EM#active500EM#show spanning-tree mst config
Name      	att
Revision    	0
Instance    	Vlans Mapped
----------------------------------
00              1-29, 31-39, 41-4094
03         	30
04              40
----------------------------------

 


Return to Controller Wired CLI Table of Contents