Here you can enter your installation specifications for the different patches. Scripts can be either uploaded files or one-liner scripts written directly into the console. Each script must be connected to a task and can’t run independently
Script Library
The Script library contains the Scripts you have created, Built-In scripts created by JetPatch which cannot be changed in any way.
- To view the Library, go to System from the main menu and select Scripts
- The Search bar at the top left corner will enable you to search through the Script Name by name only
- Filter Option: Category, Created by
- You can Edit, Delete, Enable/Disable, and Download Scripts by clicking on the action button on the right or one of the relevant icons.
- Scripts that are currently used by active Remediation Plans can't be edited.
Enable / Disable a Script
You can enable or disable the scripts in your library. Please note that if you disable a script, it cannot be used.
- Tasks that are created based on disabled scripts - are saved but do not appear in the tasks list.
- Tasks that are created based on enabled scripts - are saved and appear in the tasks list.
Create a new Script
- Select System > Scripts from the main menu
- Click on the 'Add' Button
- Fill in the relevant details:
- Script name
- Description
- Fill in the details in the following tabs:
- Configuration:
- Category (built-in/general / add a new category)
- Operating system (choose from Dropdown)
- Run Type
- Supports: Python, Shell/Bash, Power Shell, Pearl, Batch, and Awk
- Script source, you can either:
- Upload file
- One-liner script
- Exit codes - Add exit codes to your script
- EX: In Linux shell, you can run echo $? to get the expected exit code
- Configuration:
-
-
- Parameters:
- Name
- Type (Boolean, Number, String, Password IP)
- Default Value
- Required T/F
- Parameters:
-
- New scripts are set by default to Enabled, you can change the setting in the top right corner from enabled to disabled.
- Click Save
Built-In Scripts
Built-In scripts are scripts that are managed by JetPatch and therefore cannot be edited, disabled, or deleted. The 'B' icon tells you if the script is indeed a Built-In script.
Related Articles
Comments
0 comments
Please sign in to leave a comment.