- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Deletion of disabled rules in R80.10
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
API is the best answer.
Not sure anyone's coded up this specific use case yet, though.
Not sure anyone's coded up this specific use case yet, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jozko Mrkvicka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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-...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or you can export the rulebase into .csv and filter but 'disabled' on the 'type' column
