- Products
- Learn
- Local User Groups
- Partners
- More
Quantum Spark Management Unleashed!
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
SharePoint CVEs and More!
Hi CheckMates,
I have a question regarding mgmt_cli and limitation.
Is there a limit when publishing a large amount of newly created objects?
Let´s say you have a script which creates a network group for azure IPs with thousands of network objects.
Updatable objects is not an option -> 1400 appliances.
Thank you.
Greetings from Austria.
You need to mind API time out error, which is 10 min by default. If you push a long list of objects, and the command takes more than 10 minutes to post, API will return an error. The best practice is to push in smaller portions, multiple times. If each POST is short enough, you should be okay.
Hi, In addition to all good recommendations you have received in terms of publishing 100 changes and upgrade the hardware to be able to use updateable objects, I would like to point you to add/set/delete-object-batch https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.8%20 wich are API endpoints that where added in R80.40.
Batch API Significantly increase API performance in multiple object operations (add/set/delete).
*In the tested scenario of adding and deleting 256 hosts objects.
Commands:
Here is an example of adding 250 hosts objects
here is an example of deleting host patterns
Please note that usually when calling mgmt_cli with credentials (without doin a explicit login) results in four different operations including Publish.
Using the object-batch operation with mgmt_cli require you to do a explicit publish.
You can pobrobly be able to make more that hundred changes when using object-batch operation with out hitting any time out value as mentioned by Val, but the exact limit is dependent of your environment I suggest that you test with different number of changes in order to get to a value that suitable for your scenario.
Kind Regards
Jim
You need to mind API time out error, which is 10 min by default. If you push a long list of objects, and the command takes more than 10 minutes to post, API will return an error. The best practice is to push in smaller portions, multiple times. If each POST is short enough, you should be okay.
Hi Guys,
thank you for inputs.
I will try to seperate it into smaller groups per publish.
Greetings.
Fabian
This complicates rollbacks and revision control however. Not sure there is a great solution with the time it takes in general to communitate with the API on larger installations / changes
One solution is to increase the timeout on Apache server from default 10 minutes.
How to achieve that ? Could not find it in
/opt/CPshrd-R81/web/Apache/conf/cp-httpd.conf
The more changes you try to publish at the same time, the longer the process will take.
If you’re making a bunch of changes at once, it’s generally recommended to publish every few hundred changes or so.
Is there some easy way how to force publish to be done once number of XY changes were done in one session ?
For example, I want to automatically publish 50 changes if performed in the same session.
If I did 160 changes in the same session, the first publish will be done after first 50 changes, next publish after next 50 changes (100 changes already done). The last 10 changes will be handled by "manual" publish.
On the API side of things? No.
You would have to handle that in the logic of your script.
You can commit with each mgmt_cli invocation by using -r true, however that incurs a lot of extra overhead (login/do/commit/logout with each command).
I would seriously consider upgrading the gateways to newer hardware (1500 appliances) in order to use the Azure Updatable Objects.
For anyone that is coming across this thread, it's a simple as choosing it in the Access policy:
Filling your management with thousands of network objects and huge network groups isn't good practice and might introduce future slowness in some scenarios beyond the challenge of the initial publish via API.
100 changes per publish is recommended.
Same goes for group members.
Thanks for this info.
Hi, In addition to all good recommendations you have received in terms of publishing 100 changes and upgrade the hardware to be able to use updateable objects, I would like to point you to add/set/delete-object-batch https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.8%20 wich are API endpoints that where added in R80.40.
Batch API Significantly increase API performance in multiple object operations (add/set/delete).
*In the tested scenario of adding and deleting 256 hosts objects.
Commands:
Here is an example of adding 250 hosts objects
here is an example of deleting host patterns
Please note that usually when calling mgmt_cli with credentials (without doin a explicit login) results in four different operations including Publish.
Using the object-batch operation with mgmt_cli require you to do a explicit publish.
You can pobrobly be able to make more that hundred changes when using object-batch operation with out hitting any time out value as mentioned by Val, but the exact limit is dependent of your environment I suggest that you test with different number of changes in order to get to a value that suitable for your scenario.
Kind Regards
Jim
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
12 | |
9 | |
4 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |
Tue 16 Sep 2025 @ 02:00 PM (EDT)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - AmericasWed 17 Sep 2025 @ 04:00 PM (AEST)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - APACWed 17 Sep 2025 @ 03:00 PM (CEST)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - EMEAThu 18 Sep 2025 @ 03:00 PM (CEST)
Bridge the Unmanaged Device Gap with Enterprise Browser - EMEAThu 18 Sep 2025 @ 02:00 PM (EDT)
Bridge the Unmanaged Device Gap with Enterprise Browser - AmericasTue 16 Sep 2025 @ 02:00 PM (EDT)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - AmericasWed 17 Sep 2025 @ 04:00 PM (AEST)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - APACWed 17 Sep 2025 @ 03:00 PM (CEST)
Securing Applications with Check Point and AWS: A Unified WAF-as-a-Service Approach - EMEAThu 18 Sep 2025 @ 03:00 PM (CEST)
Bridge the Unmanaged Device Gap with Enterprise Browser - EMEAThu 18 Sep 2025 @ 02:00 PM (EDT)
Bridge the Unmanaged Device Gap with Enterprise Browser - AmericasAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY