Scripts | Management |
Creating scripts
With a plain text editor, you can create scripts from backed up configuration files, and then upload them as a script. Alternatively, you can type CLI commands directly into a script in the portal web site.
The following procedure requires a plain text editor.
Note: Configuration files contain CLI commands. For descriptions of CLI commands, see the FortiGate CLI Reference.
To create a script from a configuration file
1Go to Management > Device > Revision History.
2In the revision history list, locate the configuration file that you want to use as the basis for your script.
3Select Download and save to your computer.
4On your computer, edit the downloaded configuration file within a plain text editor, removing the settings that you do not want deployed.
For example, if you want to deploy the script to multiple devices, you might remove
5Save the configuration file.
6Go to Script.
7Select Upload.
8In the Upload Script dialog box, enter a name for the script.
9Enter comments that describe the script.
10Select Browse to locate the script file.
11Select Submit.
The script file is uploaded to the script list. Upload time will vary by connection speed and file size.
To create a script by entering CLI commands
1Go to Management > Script.
2Select Input.
3In the Script Input dialog box, enter a name for the script.
4Enter comments that describe the script.
5In “Script”, type CLI commands exactly as you would type them at the command prompt.
For example, if you want to deploy the script to multiple devices, you might omit
6Before submitting the commands, review the script for valid CLI syntax and correct settings.
| FortiGuard Analysis and Management Service Version 1.2.0 Administration Guide |
46 |