Skip to main content
MaAtVA
Explorer
Jan 29, 2026 3:37 PM UTC
Question

Update Hit Counters

Hello, is there a way to bulk update Hit Counters on Fortimanager for all or selected Fortigates?

I mean trough a Script in "Device Manger" - "Scripts" and schedule it on a ex. daily basis? 

I do not need the Hit Counters containing the last few minutes, it would be sufficient if i reset Policies in a Policyblock and on next Workday i can see which policies are used without Clicking "Retrieve Hit Counts" and wait until it is updated. 

1 reply

ede_pfau
SuperUser
SuperUser
Jan 31, 2026 9:36 PM UTC

IMHO you have 2 choices:

1- make the 'last used' column visible, sort and only look at the top-most policies

2- run a script periodically (i.e. each day at midnight) and use the CLI command to clear the hit counters:

diagnose firewall iprope clear 100004

which clears counters of ALL policies, or

diagnose firewall iprope clear 100004 69 117 404 

which clears counters of policies with ID 69, 117, 404.

(shamelessly copied from KB article 198251 Technical-Tip How to clear or reset policy counters on the firewall Policy via CLI )

 

Script automation if found in the menu 'Security Fabric'/'Automation'.

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024