Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear firewall (QFX)

date_range 11-Jun-24

Syntax

content_copy zoom_out_map
clear firewall (all | counter counter-name | filter filter-name)

Description

Clear statistics provided by 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.

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.

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 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

Output Fields

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

Sample Output

clear firewall all

content_copy zoom_out_map
user@switch> clear firewall all

clear firewall counter

content_copy zoom_out_map
user@switch> clear firewall counter port-filter-counter

clear firewall filter

content_copy zoom_out_map
user@switch> clear firewall filter ingress-port-filter

Release Information

Command introduced in Junos OS Release 11.1.

footer-navigation