Fortinet black logo

Administration Guide

Run a script

Run a script

You can select to enable automatic script execution or create a recurring schedule for the script (see Schedule a script).

To run a script:
  1. Go to Device Manager > Scripts.
  2. Select a script then click Run Script in the toolbar, or right-click on a script and select Run Script.

    Scripts can also be re-run from the script execution history by selecting the run button. See Script history for information.

    The Run Script dialog box will open. This dialog box will vary depending on the script target. You will either be able to select a device or devices, or a policy package.

  3. Select a device group, devices, or a policy package.
  4. Click Run Now to run the script.

    The progress of the operation will be shown, providing information on its success or failure.

Scripts can also be run directly on a device using the right-click menu in Device Manager > Device & Groups.

To run a script on the Global Database ADOM:
  1. Ensure you are in the global database ADOM.
  2. Go to Policy & Objects > Object Configurations > Scripts. If it is not visible, enable it in the Display Options (Display options).
  3. Select a script then click Run Script in the toolbar, or right-click on a script and select Run Script. The Run Script dialog box will open.
  4. Select the policy package from the drop-down list.
  5. Click Run Script to run the script.

    The progress of the operation will be shown, providing information on its success or failure.

Run a script

You can select to enable automatic script execution or create a recurring schedule for the script (see Schedule a script).

To run a script:
  1. Go to Device Manager > Scripts.
  2. Select a script then click Run Script in the toolbar, or right-click on a script and select Run Script.

    Scripts can also be re-run from the script execution history by selecting the run button. See Script history for information.

    The Run Script dialog box will open. This dialog box will vary depending on the script target. You will either be able to select a device or devices, or a policy package.

  3. Select a device group, devices, or a policy package.
  4. Click Run Now to run the script.

    The progress of the operation will be shown, providing information on its success or failure.

Scripts can also be run directly on a device using the right-click menu in Device Manager > Device & Groups.

To run a script on the Global Database ADOM:
  1. Ensure you are in the global database ADOM.
  2. Go to Policy & Objects > Object Configurations > Scripts. If it is not visible, enable it in the Display Options (Display options).
  3. Select a script then click Run Script in the toolbar, or right-click on a script and select Run Script. The Run Script dialog box will open.
  4. Select the policy package from the drop-down list.
  5. Click Run Script to run the script.

    The progress of the operation will be shown, providing information on its success or failure.