DescriptionThis article describes the procedure from CLI to clear policy counters.SolutionFrom GUI.1) In FortiOS v5.0.- Select the value of Count field on the firewall policy under Policy -> Policy -> Policy.- Select 'Clear Counters' from the list.2) In FortiOS v5.2 ,v5.4,v5.6 and v6.0.- Select the value of Count field on the firewall policy under Policy & Objects -> IPv4 Policy.- Select 'Clear Counters' from the list.3) In FortiOS v6.4.- Select the value of Count field on the firewall policy under Policy & Objects -> Firewall Policy.- Select 'Clear Counters' from the list.From CLI.Run the following CLI command to reset packet count option for the firewall policy:# diagnose firewall iprope clear 100004 <Policy ID>
Example: resetting the value of count field for the Policy ID 3.# diagnose firewall iprope clear 100004 3
Clear more than 1 counter just adding policies ID.# diagnose firewall iprope clear 00100004 3 12 48 4
Counters from Policies ID 3, 12, 48 and 4 has been cleared.The 'groupid' is 00100004, this value is for configurable firewall policies.The Policy ID number is different from the policy sequence number which is shown on 'Seq#' column on the GUI.
The Policy ID number which is the index number of the firewall policy can be found under 'ID' column on the GUI.In order to reset the count field for all policies simply omit the <Policy ID>:# diagnose firewall iprope clear 100004
Related Articles
Technical Note: How to Reset Count on the Firewall Policy
Technical Note: How to clear policy counters from CLI