Fortinet Document Library

Version:


Table of Contents

21.1.0
Download PDF
Copy Link

Script

In Script, you can create and run script files on connected remote devices to check device status or get bulk configuration information quickly.

To execute a script on a remote device:
  1. Go to Management > Script.
  2. (Optional) To create a new script, do the following:
    1. In the upper right, select Add Script.
    2. Enter a name and a description, and the CLI script content that you want to run. Each script is a series of CLI commands, one command per line. Click Submit.

  3. For the desired script, click the Deploy icon, and select a time to automatically deploy the script to the device.
  4. To cancel the scheduled run, click the Cancel icon next to the scheduled time.
  5. FortiGate Cloud records that script's output. You can read it by clicking View Result.

To download a deployment log:
  1. Go to Management > Script.
  2. Do one of the following:
    1. To download the log for a script's last successful deployment, click View Result for the desired script.
    2. To download the log for another deployment, click History. Beside the desired deployment instance, click Log.
  3. Click Download.

Script

In Script, you can create and run script files on connected remote devices to check device status or get bulk configuration information quickly.

To execute a script on a remote device:
  1. Go to Management > Script.
  2. (Optional) To create a new script, do the following:
    1. In the upper right, select Add Script.
    2. Enter a name and a description, and the CLI script content that you want to run. Each script is a series of CLI commands, one command per line. Click Submit.

  3. For the desired script, click the Deploy icon, and select a time to automatically deploy the script to the device.
  4. To cancel the scheduled run, click the Cancel icon next to the scheduled time.
  5. FortiGate Cloud records that script's output. You can read it by clicking View Result.

To download a deployment log:
  1. Go to Management > Script.
  2. Do one of the following:
    1. To download the log for a script's last successful deployment, click View Result for the desired script.
    2. To download the log for another deployment, click History. Beside the desired deployment instance, click Log.
  3. Click Download.