Running Scripts
SmartConsole
Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on. lets you run administrative scripts on Security Gateways and Security Management Servers without direct command-line access. You can execute one-time scripts or reuse predefined scripts from the repository, simplifying Gaia
Check Point security operating system that combines the strengths of both SecurePlatform and IPSO operating systems. management and automation tasks.
One Time Script
You can manually enter and run a command line script on the selected GaiaSecurity Gateways. This feature is useful for scripts that you do not need to run more than one time. It also lets you run Gaia Clish
The name of the default command line shell in Check Point Gaia operating system. This is a restricted shell (role-based administration controls the number of commands available in the shell). and other commands directly from SmartConsole.
Understanding One-Time Scripts
If you specify a script:
-
By default, the maximum size of a script is: 8 kB.
-
The output from the script shows in the Tasks tab at the bottom of the Gateways & Servers view.
-
The Run One Time Script window does not support interactive or continuous scripts. To run interactive or continuous scripts, open a command shell.
|
|
Note - SmartConsole limits the length of a script's output. For more, see sk181529. |
One Time Script Options
Script Body - Enter the script commands.
Load from File - Load a prepared script.
Comment - Enter a text comment (optional).
Run - Click to run the script that you entered.
Script Repository
You can run a predefined script from the script repository.
To run a script from the repository:
|
Step |
Description |
|
1 |
In the Gateways & Servers view, right-click the Security Gateways or Security Management Servers, on which you want to run scripts. |
|
2 |
Select Scripts > Scripts Repository. The Scripts Repository window opens. |
|
3 |
Do one of these steps:
|
The output from the script shows in the Tasks tab at the bottom of the Gateways & Servers view.
Notes:
-
The Scripts Repository window does not support interactive or continuous scripts. To run interactive or continuous scripts, open a command shell.
-
You can run the script on multiple Security Gateways or Security Management Servers at the same time.
-
For a cluster
Two or more Security Gateways that work together in a redundant configuration - High Availability, or Load Sharing. object, the script will run automatically on all cluster members. -
The
~character is not supported in scripts for security reasons.