- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Configuration script via SmartProvisioning
- 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?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Configuration script via SmartProvisioning
Hello!
How can I write Configuration Script via SmartProvisioning for 'add' command?
For example, if I want to add administrator, but he is already exist, then Provisioning State will show me an error and following commands will not be executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The scripting language for SmartProvisioning is the expert shell (bash).
You may want to check for the presence of the admin prior to adding them to ensure the script doesn't fail or do some other error catching in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The configuration script in the provisioning profile settings works only in clish. Am I wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pretty sure it's bash based on: https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You write about the run script function, and I write about the configuration script function in the provisioning profile settings.
Screenshot in attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, it would make sense that was based on clish.
Maybe add set clienv on-failure continue to the script.
This should allow the script to continue if one of the commands fails.
Not sure if this is in Embedded Gaia, but it works in regular Gaia.
