MSTP debug enhancement Command List. D-Link DGS-3000 series
Oglas
Oglas
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 54 MSTP debug enhancement
Command List
debug stp config ports [<portlist> | all] [event | bpdu | state_machine | all] state [disable | brief | detail] debug stp show information
debug stp show flag {ports <portlist>}
debug stp show counter {ports [<portlist> | all]}
debug stp clear counter {ports[<portlist> | all]}
debug stp state [enable | disable]
54-1 debug stp config ports
Description
This command is used to configure per-port STP debug level on the specified ports.
Format debug stp config ports [<portlist> | all] [event | bpdu | state_machine | all] state [disable | brief | detail]
Parameters
<portlist> - Enter the STP port range to debug.
all - Specify to debug all ports on the Switch.
event - Specify to debug the external operation and event processing.
bpdu - Specify to debug the BPDU’s that have been received and transmitted.
state_machine - Specify to debug the state change of the STP state machine.
all - Specify to debug all of the above.
state - Specify the state of the debug mechanism.
disable - Disables the debug mechanism.
brief - Sets the debug level to brief.
detail - Sets the debug level to detail.
Restrictions
Only Administrators can issue this command.
Example
To configure all STP debug flags to brief level on all ports:
DGS-3000-26TC:admin#debug stp config ports all all state brief
Command: debug stp config ports all all state brief
Success.
DGS-3000-26TC:admin#
54-2 debug stp show information
Description
This command is used to display STP detailed information.
509
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Format debug stp show information
Parameters
None.
Restrictions
Only Administrators can issue this command.
Example
To show STP debug information:
DGS-3000-26TC:admin#debug stp show information
Command: debug stp show information
Warning: only support local device.
Spanning Tree Debug Information:
----------------------------------------
Port Status In Hardware Table:
Instance 0:
Port 1 : FOR Port 2 : FOR Port 3 : FOR Port 4 : FOR Port 5 : FOR
Port 6 : FOR
Port 7 : FOR Port 8 : FOR Port 9 : FOR Port 10 : FOR Port 11 : FOR
Port 12 : FOR
Port 13 : FOR Port 14 : FOR Port 15 : FOR Port 16 : FOR Port 17 : FOR
Port 18 : FOR
Port 19 : FOR Port 20 : FOR Port 21 : FOR Port 22 : FOR Port 23 : FOR
Port 24 : FOR
Port 25 : FOR Port 26 : FOR
--------------------------------------
Root Priority And Times:
Instance 0:
Designated Root Bridge : 36795/FD-7F-C3-FF-EF-12
External Root Cost : -139756361
Regional Root Bridge : 65447/3D-D5-7D-35-D8-FF
Internal Root Cost : 1466613107
Designated Bridge : 61882/9F-F3-FF-C7-EB-B5
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
54-3 debug stp show flag
Description
This command is used to display the STP debug level on specified ports.
Format debug stp show flag {ports <portlist>}
Parameters
ports - (Optional) Specify the STP ports to display.
510
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
<portlist> - (Optional) Enter the list of port used for this configuration here.
If no parameter is specified, all ports on the Switch will be displayed.
Restrictions
Only Administrators can issue this command.
Example
To display the debug STP levels on all ports:
DGS-3000-26TC:admin#debug stp show flag
Command: debug stp show flag
Global State: Disabled
Port Index Event Flag BPDU Flag State Machine Flag
----------------------------------------------------------
1 Disabled Disabled Disabled
2 Disabled Disabled Disabled
3 Disabled Disabled Disabled
4 Disabled Disabled Disabled
5 Disabled Disabled Disabled
6 Disabled Disabled Disabled
7 Disabled Disabled Disabled
8 Disabled Disabled Disabled
9 Disabled Disabled Disabled
10 Disabled Disabled Disabled
11 Disabled Disabled Disabled
12 Disabled Disabled Disabled
13 Disabled Disabled Disabled
14 Disabled Disabled Disabled
15 Disabled Disabled Disabled
16 Disabled Disabled Disabled
17 Disabled Disabled Disabled
18 Disabled Disabled Disabled
19 Disabled Disabled Disabled
20 Disabled Disabled Disabled
21 Disabled Disabled Disabled
22 Disabled Disabled Disabled
23 Disabled Disabled Disabled
24 Disabled Disabled Disabled
25 Disabled Disabled Disabled
26 Disabled Disabled Disabled
DGS-3000-26TC:admin#
54-4 debug stp show counter
Description
This command is used to display the STP counters.
Format debug stp show counter {ports [<portlist> | all]}
511
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Parameters
ports - (Optional) Specify the STP ports for display.
<portlist> - Enter the list of port used for this configuration here.
all - Display all port’s counters.
If no parameter is specified, display the global counters.
Restrictions
Only Administrators can issue this command.
Example
To show the STP counters for port 9:
DGS-3000-26TC:admin#debug stp show counter ports 9
Command: debug stp show counter ports 9
STP Counters
--------------------------------------
Port 9 :
Receive: Transmit:
Total STP Packets : 0 Total STP Packets : 0
Configuration BPDU : 0 Configuration BPDU : 0
TCN BPDU : 0 TCN BPDU : 0
RSTP TC-Flag : 0 RSTP TC-Flag : 0
RST BPDU : 0 RST BPDU : 0
Discard:
Total Discarded BPDU : 0
Global STP Disabled : 0
Port STP Disabled : 0
Invalid packet Format : 0
Invalid Protocol : 0
Configuration BPDU Length : 0
TCN BPDU Length : 0
RST BPDU Length : 0
Invalid Type : 0
Invalid Timers : 0
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
54-5 debug stp clear counter
Description
This command is used to clear the STP counters.
Format debug stp clear counter {ports[<portlist> | all]}
Parameters
ports - (Optional)Specify the port range.
<portlist> - Enter the list of port used for this configuration here.
512
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
all - Clears all port counters.
Restrictions
Only Administrators can issue this command.
Example
To clear all STP counters on the Switch:
DGS-3000-26TC:admin#debug stp clear counter ports all
Command: debug stp clear counter ports all
Success.
DGS-3000-26TC:admin#
54-6 debug stp state
Description
This command is used to enable or disable the STP debug state.
Format debug stp state [enable | disable]
Parameters
enable - Enables the STP debug state.
disable - Disables the STP debug state.
Restrictions
Only Administrators can issue this command.
Example
To configure the STP debug state to enable, and then disable the STP debug state:
DGS-3000-26TC:admin#debug stp state enable
Command: debug stp state enable
Success.
DGS-3000-26TC:admin#debug stp state disable
Command: debug stp state disable
Success.
DGS-3000-26TC:admin#
513
Preuzimanje
Oglas