CLI script group
CLI scripts can be put into groups so that multiple scripts can be run on a target at the same time.
To manage script groups, go to to Device Manager > Scripts . Script and Script Group entries are displayed in the content pane.
The following information is displayed:
Name |
The user-defined script group name. |
Type |
The script type, for example CLI Script. |
Target |
The script group target. |
Comments |
User defined comment for the group. |
Members |
The scripts that are included in the script group. |
Last Modified |
The date and time the group was last modified. |
The following options are available in the toolbar, or right-click menu.
Create New |
Create a new script group. |
Edit |
Edit the selected group. |
Delete |
Delete the selected group or groups. |
Run Script |
Run the selected script group. If the target is Device Database or Remote FortiGate Directly (via CLI), select the device or devices to run the scripts in the group on, then click Run Now. If the target is Policy Package or ADOM Database, select the policy package from the drop-down list, then click Run Now. |
Search |
Enter a search term in the search field to search the script groups. |
To create a new CLI script group:
- Go to Device Manager > Scripts .
- Click Create New > Script Group in the toolbar. The Create New CLI Script Group(s) pane opens.
- Configure the following settings, then click OK to create the CLI script group.:
Script Group Name
Enter a name for the script group.
Comments
Optionally, type a comment for the script group.
Type
CLI Script. This field is read-only.
Run Script on
Select the script target. This settings will affect the options presented when you go to run a script. The options include:
- Device Database
- Policy Package or ADOM Database
- Remote FortiGate Directly (via CLI)
Members
Use the directional arrows to move available scripts to member scripts.