Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
AHMADAHUSEN
Participant

Deletion of disabled rules in R80.10

Dear Team,

 

I am doing rule-base optimization in R80.10, So I have disabled lot of rules manually. How can I delete all disabled rules in faster way?(If you recommend for API, then kindly give complete procedure to accomplish this)

 

4 Replies
PhoneBoy
Admin
Admin

API is the best answer.
Not sure anyone's coded up this specific use case yet, though.
JozkoMrkvicka
Authority
Authority

Loop over all policies and search (select) all rules with "enabled==false" and get UID of all rules.

then delete all rules with matched UID.

Kind regards,
Jozko Mrkvicka
PhoneBoy
Admin
Admin

You could modify the script here with the above advice to achieve the desired result: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-...
0 Kudos
clarkwillms
Explorer

Or you can export the rulebase into .csv and filter but 'disabled' on the 'type' column

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events