Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

Administration Guide

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 > CLI Script Group.

The following information is displayed:

Name

The user-defined script group name.

Members

The scripts that are included in the script group.

Target

The script group target.

Comments

User defined comment for the 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:
  1. Go to Device Manager > Scripts > CLI Script Group.
  2. Select Create New in the toolbar. The Create New CLI Script Group(s) pane opens.
  3. Configure the following settings, then click OK to create the CLI script group.:
  4. 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.

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 > CLI Script Group.

The following information is displayed:

Name

The user-defined script group name.

Members

The scripts that are included in the script group.

Target

The script group target.

Comments

User defined comment for the 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:
  1. Go to Device Manager > Scripts > CLI Script Group.
  2. Select Create New in the toolbar. The Create New CLI Script Group(s) pane opens.
  3. Configure the following settings, then click OK to create the CLI script group.:
  4. 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.