- Products
- Learn
- Local User Groups
- Partners
- More
What's New in Check Point SASE
Wednesday, 9 September @ 5pm CET / 11am EDT
The State of Ransomware Q2 2026:
This Quarter's Trends, and Their Impact on Your Defenses
AI Security Masters
Implementing the AI Security Trifecta
CheckMates Go:
Half is Not Enough
V2 **Updated to support object databases of any size**
V3 **Added Separate scripts for MDS Support**
V4 **Combined MDS and SMS into a single script. Export now creates a single file instead of two. **
NOTE: The larger the object database the more time this takes to run.
This is a simple shell script that will allow you to parse a particular object database for unused objects. The results will be output into three files of mgmt_cli commands to delete those objects (Host, Network, Group). You could use those files to automatically delete the objects but I suggest reviewing anything before you delete rules. Both SMS and MDS are supported in the same script.
You have two options of use; NAME or UID.
Original files on github: GitHub - cpmidsouth/Delete-Unused-Objects: This Script will seach the object database for Unused Obj...
Feedback welcome this was a simple project that came out of a client request.
V2 **Updated to support object databases of any size**
V3 **Added Separate scripts for MDS Support**
V4 **Combined MDS and SMS into a single script. Export now creates a single file instead of two. **
NOTE: The larger the object database the more time this takes to run.
This is a simple shell script that will allow you to parse a particular object database for unused objects. The results will be output into three files of mgmt_cli commands to delete those objects (Host, Network, Group). You could use those files to automatically delete the objects but I suggest reviewing anything before you delete rules. Both SMS and MDS are supported in the same script.
You have two options of use; NAME or UID.
Original files on github: GitHub - cpmidsouth/Delete-Unused-Objects: This Script will seach the object database for Unused Obj...
Feedback welcome this was a simple project that came out of a client request.
V2 **Updated to support object databases of any size**
V3 **Added Separate scripts for MDS Support**
V4 **Combined MDS and SMS into a single script. Export now creates a single file instead of two. **
NOTE: The larger the object database the more time this takes to run.
This is a simple shell script that will allow you to parse a particular object database for unused objects. The results will be output into three files of mgmt_cli commands to delete those objects (Host, Network, Group). You could use those files to automatically delete the objects but I suggest reviewing anything before you delete rules. Both SMS and MDS are supported in the same script.
You have two options of use; NAME or UID.
Original files on github: GitHub - cpmidsouth/Delete-Unused-Objects: This Script will seach the object database for Unused Obj...
Feedback welcome this was a simple project that came out of a client request.
Gaurav,
Thanks for the nice comment. I did a script a couple weeks ago that would search the rulebase for zero hit count. Take a look at it: https://community.checkpoint.com/docs/DOC-2640
I'm working on v3 to be a bit more flexible with layers.
-Adam
Gaurav,
Thanks for the nice comment. I did a script a couple weeks ago that would search the rulebase for zero hit count. Take a look at it: https://community.checkpoint.com/docs/DOC-2640
I'm working on v3 to be a bit more flexible with layers.
-Adam
mgmt_cli and these scripts are for R80.x right?
mgmt_cli and these scripts are for R80.x right?
Hi Chris,
Yes. It is for R80.x
Hi Chris,
Yes. It is for R80.x
Great! This is exactly what i am looking for! I am migrating the configuration from an old firewall to check point and I always have hated insert unused objects in the new policy!!
I am going to test it!
Thank you
Great! This is exactly what i am looking for! I am migrating the configuration from an old firewall to check point and I always have hated insert unused objects in the new policy!!
I am going to test it!
Thank you
Awesome! Glad this will help, let me know if you have questions. After you get running and logs going for a few months take a look at https://community.checkpoint.com/docs/DOC-2640?sr=stream&ru=53216 and it will help you clean up your rulebase some
Awesome! Glad this will help, let me know if you have questions. After you get running and logs going for a few months take a look at https://community.checkpoint.com/docs/DOC-2640?sr=stream&ru=53216 and it will help you clean up your rulebase some
Hi
Great tool!
Do you consider to expand the tool for Services (TCP|UDP|Groups)
Thanks
Regards
Hi
Great tool!
Do you consider to expand the tool for Services (TCP|UDP|Groups)
Thanks
Regards