clear counters ports

clear counters ports {port_list | all}

Description

Clears the counters associated with the ports.

Syntax Description

ports Clears port-related statistics on specified ports or all ports in the system.
port_list Port list for clear operation.
all All ports in the system.

Default

All ports.

Usage Guidelines

This command clears the counters for the ports, including the following:
  • Statistics.
  • Transmit errors.
  • Receive errors.
  • Collisions.
  • Packets.
Note

Note

If you use the clear counters command with no keyword, the system clears the counters for all applications.

Example

The following example clears the counters on all ports:

clear counters ports all

History

This command was first available in ExtremeXOS 11.3.

This command was updated in ExtremeXOS 15.5 to include the port_list variable and the all keyword.

Platform Availability

This command is available on all platforms.