Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear firewall

Syntax

Description

Clear statistics provided by firewall filters.

When you clear the counters of a filter, this not only impacts the counters shown by the CLI, but also the ones tracked by SNMP 2.

Options

all

Clear the packet and byte counts for all firewall filter counters and clear the packet counts for all policer counters.

counter counter-name

Clear the packet and byte counts for the specified firewall filter counter.

filter filter-name

Clear the packet and byte counts for the specified firewall filter.

policer counter (all | counter-id counter-index)

Clear all policer counters using the policer counter all command, or clear a specific policer counter using the policer counter counter-id counter-index command. The value of counter-index can be 0, 1, or 2.

Required Privilege Level

clear

Sample Output

clear firewall all

clear firewall counter

clear firewall filter

Release Information

Command introduced in Junos OS Release 11.1.