Building on the excellent python library by Uri Bialik in this post https://community.checkpoint.com/docs/DOC-1091
I have created another script that maybe useful, more in the SE and partner community, than customer, but it is still a nice demonstration of how useful this API is!
Often in proof of concept/value exercises that center around performance testing it is requested that the performance testing should be done with a number of rules in place to give a more realistic “real world” scenario. This can be incredibly tedious as you have to create a number of dummy objects and dummy rules in the policy which can be incredible time consuming, especially if the number of rules is in the thousands.
Previously we could use dbedit for versions prior to R80 to achieve some of this but it was a bit clunky and slow. Now with R80, and the API, we can be a bit slicker about this.
The script, when run, will prompt you for the number of rules that are required and then will calculate the number of objects needed and create the objects and rules automatically. Then you can put the actual rules that the test traffic will hit at the end manually.
This should save a ton of time in these performance testing scenarios, but also it is a great and practical demonstration of the power of automation, R80 and the API.
I have added a 5 minute video of this in action to YouTube (no audio) https://www.youtube.com/watch?v=7l8mf1-4Xmo&feature=youtu.be
The script is attached below along with Uri Bialik original library. It is in the "dummy_rules" folder