checkpointsw / policycleanup Goto Github PK
View Code? Open in Web Editor NEWCheck Point PolicyCleanUp tool allows automatic cleanup of your policy based on hits count.
Check Point PolicyCleanUp tool allows automatic cleanup of your policy based on hits count.
Hello
We have tested the latest version of the PolicyCleanUp.py and it seems that it doesn't work with policy packages with inline layers
Can you please test/confirm?
Thank you
Kostas
Hello,
First off I would like to say this tool is awesome and works great, but i think i found an issue with it. I noticed that if i make a change to the rule, but the hit count doesn't change, it doesn't add it as one of the rules to disable, even though it should be since the hitcount threshold is within the specified time for rules to be disabled.
I tested it with a rule that prior to me making a change was in teh disabled list, and then i made a change to the comments of the rule and installed database and then ran the tool again and it didn't add it to the disabled list.
Any idea what i'm doing wrong?
python policyCleanUp.py -op plan -r true
Traceback (most recent call last):
File "policyCleanUp.py", line 1118, in
main()
File "policyCleanUp.py", line 989, in main
check_validation_for_mds(client, user_args.domain)
File "policyCleanUp.py", line 935, in check_validation_for_mds
if int(api_res.data.get('total')) != 0:
AttributeError: 'NoneType' object has no attribute 'get'
The API call show-mdss used to work from any CMA (bug), and it's supposed to be called from the 'System Data' aka MDS domain only (fix).
Please fix the code to make the API call show-mdss against the 'System Data' domain.
Function: check_validation_for_mds
Thank you!
I am about to start using this program but I would need to add some functionality.
Currently the code is hard to read and work with because it does not follow the established formatting practises like PEP8.
Would you accept pull-requests to make the code better maintainable and expandable?
How long would it usually take to accept the pull-request?
I would like to help with:
pip
and executable by its name.When running this tool against a policy where the "install on" is an object group (rather than a gateway) all rules in this policy are skipped.
R77.xx did not allow an object group in the install on field but since R80.xx it is allowed.
Dear Developer,
For readability and Search Engine Optimization (SEO) it would be great if you could do the followings:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.