- Products
- Learn
- Local User Groups
- Partners
- More
Quantum Spark Management Unleashed!
Introducing Check Point Quantum Spark 2500:
Smarter Security, Faster Connectivity, and Simpler MSP Management!
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!
Hey guys,
I know this was asked before and I do know you can try do this with time objects for specific rules and also install policy on successful ips update, BUT, I cant find anywhere an option to schedule policy push on specific date time like below in forti manager for Fortigate firewalls?
Thoughts?
Andy
Hi Andy
This is possible in Multi-Domain Security Management using Policy Presets:
Here is the API part:
https://sc1.checkpoint.com/documents/latest/APIs/#cli/install-policy~v2%20
mgmt_cli install-policy policy-package "standard" access true threat-prevention true targets.1 "corporate-gateway" --format json • "--format json" is optional. By default the output is presented in plain text.
I would not recommend to auto policy push at one point it will give issues.
The cronjob with inside the API and custom script:
mgmt_cli install-policy --batch /home/admin/gateways.csv --format json -u username -p PW
Thanks everyone for your responses, always greatly appreciated.
@D_W @Bob_Zimmerman @Tal_Paz-Fridman @Tal_Paz-Fridman
I was more thinking there was a way to enable option to check like one I uploaded from Forti manager to schedule policy install, but guess thats not possible as of yet via smart console. Anyway, not a huge deal, I ended up submitting an RFE for it.
Thanks again everyone.
Andy
Hi Andy
This is possible in Multi-Domain Security Management using Policy Presets:
Thanks Tal. We dont have any customers using MDS, so any way to do this on regular mgmt?
Andy
One hazard with policy presets: they stick around after they've fired, and they reference objects. I was recently involved in upgrading an MDS which had hundreds of these left over referencing firewalls which had been decommissioned years earlier. The references to objects which no longer exist tanked the upgrade, and there doesn't appear to be API support for managing policy presets, so we had to manually delete them.
I wrote a script for recurring policy installations several years ago. I'll clean it up a little and share in a bit. In the main environment I currently manage, we install almost every policy every day Monday through Friday. We find it helps us identify problems more quickly, since we have fewer changes to review since the last push.
Thats super VALID point @Bob_Zimmerman
I've just added two scripts to one of my Github repos:
https://github.com/Bob-Zimmerman/CPFirewallScripts
Check out autoPushWorker.sh and autoPush_Dev-QA.sh (which I call a "window script"). A cron job starts the window script, the window script sets up the data and passes it to the worker script. The worker script then sends a notification it's starting, pushes the policy, and sends an email with the results when it's done.
Thanks Bob! I will test it.
Andy
Create a cron job on the management server and via mgmt api install the policy.
why do you need this?
If you could give me an example, would be great! Customer asked me about it recently, possibly they may want to have it installed at night after so many changes.
Andy
You can also create a SmartTask in SmartConsole that will run a predefined script after a predefined trigger like Publish.
Thanks Tal. I actually saw that the other day, but does not sadly have an option for policy install : - (
Andy
Here is the API part:
https://sc1.checkpoint.com/documents/latest/APIs/#cli/install-policy~v2%20
mgmt_cli install-policy policy-package "standard" access true threat-prevention true targets.1 "corporate-gateway" --format json • "--format json" is optional. By default the output is presented in plain text.
I would not recommend to auto policy push at one point it will give issues.
The cronjob with inside the API and custom script:
mgmt_cli install-policy --batch /home/admin/gateways.csv --format json -u username -p PW
Hey Lesley,
Right, I know that part, but still does not show or gives an example of how you would run if on a specific schedule.
Andy
cronjob will do that for you. if you want it to run more then once a day there is a SK how to change a cronjob to run it more often
So you mean something like this under job scheduler in gaia? and then set job to run every so often?
mgmt_cli install-policy policy-package "standard" access true threat-prevention true targets.1 "corporate-gateway"
You would need a wrapper script to set up the environment variables (. /etc/profile.d/CP.sh) so mgmt_cli can work, and that exact command wouldn't work (for a cronjob, you need to use the full path, plus you need to pass static credentials to mgmt_cli or use '-r true').
Adding a separate cronjob per firewall you want to push to gets ugly fast.
And there's no way to suspend it temporarily. You would have to delete the cronjob, then add it back when you want to resume.
correct use gaia cron job to run the script you want.
Thanks!
Thanks everyone for your responses, always greatly appreciated.
@D_W @Bob_Zimmerman @Tal_Paz-Fridman @Tal_Paz-Fridman
I was more thinking there was a way to enable option to check like one I uploaded from Forti manager to schedule policy install, but guess thats not possible as of yet via smart console. Anyway, not a huge deal, I ended up submitting an RFE for it.
Thanks again everyone.
Andy
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
Wed 10 Sep 2025 @ 11:00 AM (CEST)
Effortless Web Application & API Security with AI-Powered WAF, an intro to CloudGuard WAFWed 10 Sep 2025 @ 11:00 AM (EDT)
Quantum Spark Management Unleashed: Hands-On TechTalk for MSPs Managing SMB NetworksFri 12 Sep 2025 @ 10:00 AM (CEST)
CheckMates Live Netherlands - Sessie 38: Harmony Email & CollaborationWed 10 Sep 2025 @ 11:00 AM (EDT)
Quantum Spark Management Unleashed: Hands-On TechTalk for MSPs Managing SMB NetworksFri 12 Sep 2025 @ 10:00 AM (CEST)
CheckMates Live Netherlands - Sessie 38: Harmony Email & CollaborationAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY