- Products
- Learn
- Local User Groups
- Partners
-
More
Celebrate the New Year
With CheckMates!
Value of Security
Vendor Self-Awareness
Join Us for CPX 360
23-24 February 2021
Important certificate update to CloudGuard Controller, CME,
and Azure HA Security Gateways
How to Remediate Endpoint & VPN
Issues (in versions E81.10 or earlier)
Mobile Security
Buyer's Guide Out Now
Important! R80 and R80.10
End Of Support around the corner (May 2021)
Hello
Multi MDS R80.10
Is there any way to non-interactively install policy using management API ?
Im asking because i want to script policy installations to happen periodically, as there is no option to use expect, how can i go through policy installations non-interactively ?
@piotrsz90 wrote:
That works to me, however flags "[...]--root true -u admin[...]" bring ambiguous parameters error, beside this all is fine.
Because of MDS you have to use domain:
mgmt_cli --root true --domain <domain> install-policy <policyname>
BTW: You can add "prepare-only true" to a first test.
Also look in the Management API Reference Guide:
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/install-policy~v1.5%20
Another option you can use is Install Policy Presets that were added in R80.20 to Multi-Domain SmartConsole.
About CheckMates
Learn Check Point
Advanced Learning
WELCOME TO THE FUTURE OF CYBER SECURITY