clear counters stp

clear counters stp {[all | diagnostics | domains | ports]}


Clears, resets all STP statistics and counters.

Syntax Description

all Specifies all STP domain, port, and diagnostics counters.
diagnostics Specifies STP diagnostics counters.
domains Specifies STP domain counters.
ports Specifies STP port counters.



Usage Guidelines

If you do not enter a parameter, the result is the same as specifying the all parameter: the counters for all domains, ports, and diagnostics are reset.

Enter one of the following parameters to reset the STP counters on the switch:
  • all—Specifies the counters for all STPDs and ports, and clears all STP counters.

  • diagnostics—Clears the internal diagnostic counters.

  • domains—Clears the domain level counters.

  • ports—Clears the counters for all ports and leaves the domain level counters.

Viewing and maintaining statistics on a regular basis allows you to see how well your network is performing. If you keep simple daily records, you will see trends emerging and notice problems arising before they cause major network faults. By clearing the counters, you can see fresh statistics for the time period that you are monitoring.


The following command clears all of the STP domain, port, and diagnostic counters:

clear counters stp


This command was first available in ExtremeXOS 10.1.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.