Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
the_rock
MVP Platinum
MVP Platinum
Jump to solution

Check all the rules with services "any"

Hey guys,

Just wondering, is there a way to check how many rules in rulebase would have services listed as "any"?

I checked api documentation, but having a bit of a hard time getting the right syntax.

https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-services-tcp~v2.0.1%20

Tx as always!

Best,
Andy
0 Kudos
3 Solutions

Accepted Solutions
Lesley
MVP Gold
MVP Gold

Compliance blade can do this for 100%

Service, destination or ''any'' source

-------
Please press "Accept as Solution" if my post solved it 🙂

View solution in original post

Lesley
MVP Gold
MVP Gold

I can find it in demo mode.

Logs & monitor -> open new tab -> compliance -> under blades click firewall

compliance.jpg

-------
Please press "Accept as Solution" if my post solved it 🙂

View solution in original post

10 Replies
Bob_Zimmerman
MVP Gold
MVP Gold

As in you're trying to find the rules which use the "Any" object in the Service column, or you're trying to find the rules which use a service object with "Match for Any" set?

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Hey Bob,

My bad, should have clarified. Yes, find rules that use "Any" in service column, correct.

Best,
Andy
0 Kudos
Bob_Zimmerman
MVP Gold
MVP Gold

Do you just want a count, rule UUIDs, or the whole rule?

Do you care about keeping the sections in the output?

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Does not matter, all of those are fine Bob, as long as its in readable format 🙂

Best,
Andy
0 Kudos
Lesley
MVP Gold
MVP Gold

Compliance blade can do this for 100%

Service, destination or ''any'' source

-------
Please press "Accept as Solution" if my post solved it 🙂
the_rock
MVP Platinum
MVP Platinum

Probably, but Im trying to see if I can get it from mgmt_cli 🙂

Best,
Andy
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Maybe Im missing something, but I cant see option anywhere from the blade to do this...

Screenshot_1.png

Best,
Andy
0 Kudos
Lesley
MVP Gold
MVP Gold

I can find it in demo mode.

Logs & monitor -> open new tab -> compliance -> under blades click firewall

compliance.jpg

-------
Please press "Accept as Solution" if my post solved it 🙂
the_rock
MVP Platinum
MVP Platinum

Thanks brother, got it now, learned something new 🙂

 

Screenshot_2.png

Best,
Andy
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events