- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Management API
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jump to solution
Management API
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 ?
1 Solution
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All you need to do is create a small script on the management server that contains:
mgmt_cli --root true -u admin -p <passw> install-policy <policyname>
Schedule this script in cron and you are done.
mgmt_cli --root true -u admin -p <passw> install-policy <policyname>
Schedule this script in cron and you are done.
Regards, Maarten
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what about install policy presets?
https://sc1.checkpoint.com/documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_Multi-DomainSecurityManag...
https://sc1.checkpoint.com/documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_Multi-DomainSecurityManag...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it a thing for 80.10 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All you need to do is create a small script on the management server that contains:
mgmt_cli --root true -u admin -p <passw> install-policy <policyname>
Schedule this script in cron and you are done.
mgmt_cli --root true -u admin -p <passw> install-policy <policyname>
Schedule this script in cron and you are done.
Regards, Maarten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
That works to me, however flags "[...]--root true -u admin[...]" bring ambiguous parameters error, beside this all is fine.
I was looking exactly for something like this, my bad i didnt go carefully enough through management API reference to catch optional switches...
That works to me, however flags "[...]--root true -u admin[...]" bring ambiguous parameters error, beside this all is fine.
I was looking exactly for something like this, my bad i didnt go carefully enough through management API reference to catch optional switches...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
All is sorted, thanks
All is sorted, thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
