xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
473 
 
DGS-3120-24TC:admin# debug stp clear counter ports all         
Command: debug stp clear counter ports all 
 
 Warning: only support local device. 
 
Success.                                                           
 
DGS-3120-24TC:admin# 
 
47-6  debug stp state 
Description 
This command is used to enable or disable the STP debug state. 
 
Format 
debug stp state [enable | disable] 
 
Parameters 
state - Specify the STP debug state. 
enable - Enable the STP debug state. 
disable - Disable the STP debug state. 
 
Restrictions 
Only Administrator-level users can issue this command. 
 
Example 
To configure the STP debug state to enable, and then disable the STP debug state: 
DGS-3120-24TC:admin# debug stp state enable 
Command: debug stp state enable 
 
Success. 
 
DGS-3120-24TC:admin# debug stp state disable 
Command: debug stp state disable 
 
Success. 
 
 
47-7  config stp trap 
Description 
This command is used to configure sending the STP traps.