I am trying to export 0 hit rules, I found some old discussion. and articles
Solved: Re: Export of rules with zero hits in dashboard - Check Point CheckMates
Solved: Disable/Delete Rules with a Zero Hit Count (MDS or... - Check Point CheckMates
My environment is MDS, I have inline policy layers. When I run mgmt_cli , I can see the packages
[Expert@MDS-01:0]# mgmt_cli -r true --port 443 show packages -d "172.16.31.117" --format json | jq '.packages[] | .name' | sed 's/\"//g'
EXT-OTT
Standard
However, when I try to see the rule base, it says object not found.
[Expert@MDS-01:0]# mgmt_cli show access-rulebase offset 0 limit 20 name "EXT-OTT" details-level "standard" use-object-dictionary true
Username: admin
Password:
code: "generic_err_object_not_found"
message: "Requested object [EXT-OTT] not found"
[Expert@MDS-01:0]# ^C
[Expert@MDS-01:0]# mgmt_cli -r true --port 443 show access-rulebase name "EXT-OTT" -d "172.16.31.117" show-hits true --format json limit 50000
{
"code" : "generic_err_object_not_found",
"message" : "Requested object [EXT-OTT] not found"
What am I missing here?
Sorry I am new to API calls and programming; I work mostly on firewalls.