Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear interfaces statistics

Syntax

Description

Set interface statistics to zero. If you issue the clear interfaces statistics interface-name command and then perform a graceful Routing Engine switchover, the interface statistics are not cleared on the new primary node. Reissue the command to clear the interface statistics again.

Starting in Junos OS Release 17.3R1, this command supports the clearing of Packet Forwarding Engine accounting statistics on logical interfaces configured with accounting options. On these interfaces, the current statistics values are stored as the new current baseline values and then the counters are reset to zero. If the allow-clear statement is included in the interface profile, then the cleared statistics values are reported to the accounting options flat file associated with the interface. Reporting is disabled by default; if allow-clear is not configured, then the CLI displays cleared statistics counters, but they are not reported to the flat file.

Starting in Junos OS Release 19.1R1, this command supports the clearing of unicast Reverse Path Forwarding (RPF) statistics.

Starting in Junos OS Release 21.3R1, on MX Series Routers, this command supports the clearing of Reverse Path Forwarding (RPF) statistics of the Ethernet interfaces.

Options

all

Set statistics on all interfaces to zero.

interface-name

Set statistics on a particular interface to zero.

Required Privilege Level

clear

Output Fields

When you enter this command, you are provided no feedback on the status of your request.

Sample Output

clear interfaces statistics

Release Information

Command introduced before Junos OS Release 7.4.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
17.3R1
Starting in Junos OS Release 17.3R1, this command supports the clearing of Packet Forwarding Engine accounting statistics on logical interfaces configured with accounting options.