Technical Tip: How to collect local-in policy's hit count
| Description | This article describes how to check the hit count for a local-in policy. |
| Scope | FortiGate v7.0.4+. |
| Solution | Use the following command to check for local-in policy hit count:
diagnose firewall iprope show 100001 <policy id>
This command will show the first hit and the last hit as well.
Example output: Local-in policy configuration:
config firewall local-in-policy
diagnose firewall iprope show <ID> <stage> diagnose firewall iprope show 100001 1
To clear the counter, the following command can be used: diagnose firewall iprope clear <ID> <stage> diagnose firewall iprope clear 100001 1
For a comprehensive explanation of iprope policy groups, refer to Technical Tip: iprope policies group. |
