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 about configured firewall filters.

Note:

The clear firewall command cannot be used to clear the Routing Engine filter counters on a backup Routing Engine that is enabled for GRES.

If you clear statistics for firewall filters that are applied to Trio-based DPCs and that also use the prefix-action action on matched packets, wait at least 5 seconds before you enter the show firewall prefix-action-stats command. A 5-second pause between issuing the clear firewall and show firewall prefix-action-stats commands avoids a possible timeout of the show firewall prefix-action-stats command.

Options

all

Clear the packet and byte counts for all filters.

counter counter-name

Clear the packet and byte counts for a filter counter that has been configured with the counter firewall filter action.

filter filter-name

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

Required Privilege Level

clear

Output Fields

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

Sample Output

clear firewall all

Release Information

Command introduced in Junos OS Release 10.0.