You can use Best Practice Assessment (BPA) Tool — The BPA for next-generation firewalls and Panorama evaluates a device’s configuration by measuring the adoption of capabilities, validating whether the policies adhere to best practices, and providing recommendations and instructions for how to remediate failed best practice checks. This page will provide more information about this feature.
The policy optimizer is not available to be interacted with via the NGFW API, so we're limited with options.
Best shot? The ssh command, show rule-hit-count vsys vsys-name rule-base security rules all and parsing that table. Scheduling a chron job to run as need type deal. Not elegant, by any means...
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!