xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
424
DGS-3450:admin#debug stp show counter ports 9
Command: debug stp show counter ports 9
STP Counters
--------------------------------------
Port 9 :
Receive:
Transmit:
Total STP Packets :32 Total STP Packets
:32
Configuration BPDU :0 Configuration BPDU
:0
TCN BPDU :0
TCN BPDU
:0
RSTP TC-Flag :15
RSTP TC-Flag
:7
RST BPDU :32
RST BPDU
:32
Discarded:
Total Discard BPDU :0
Global STP Disable :0
Port STP Disabled
:0
Invalid Packet Format :0
Invalid Protocol :0
Config BPDU Length
:0
TCN BPDU Length :0
RST BPDU Length :0
Invalid Type
:0
Invalid Timers
:0
Success.
DGS-3450:admin#
debug stp clear counter
Purpose
Used to clear STP counters.
Syntax
debug stp clear counter [ports < portlist > | all ]
Description
This command used to clear the STP counters.
Parameters
ports <portlist>
- Specifies the port range.
all
- Clears all port counters.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To clear all STP counters on the switch:
DGS-3450:admin#debug stp clear counter all
Command : debug stp clear counter all
Success.
DGS-3450:admin#
debug stp state
Purpose
Used to configure the STP debug state.
Syntax
debug stp state [enable | disable]
Description
This command is used to enable or disable the STP debug state.