Running Scripts

SmartConsoleClosed 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 GaiaClosed 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 ClishClosed 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:

  • Select an existing script from the list, click Run, enter Arguments if needed, and click Run.

  • Click New to create a new script for the repository, or load it from a text file. Click OK.

The output from the script shows in the Tasks tab at the bottom of the Gateways & Servers view.

Notes: