System Maintenance
Using script files
FortiGate Version 4.0 Administration Guide
01-400-89802-20090424
263
•
Figure 156: Script execution history
Creating script files
Script files are text files with CLI command sequences. When a script file is uploaded to a
FortiGate unit, the commands are executed in sequence.
To create a script file
1
Open a text editor application. Notepad on Windows, GEdit on Linux, Textedit on the
Mac, or any editor that will save plain text can create a script file.
2
Enter the CLI commands you want to run.
The commands must be entered in sequence, with one command per line.
3
Save the file to your maintenance PC.
Execute Script from
Scripts can be uploaded directly to the FortiGate unit from the
management PC. If you have configured either a FortiManager unit or
the FortiGuard Analysis and Management Service, scripts that have
been stored remotely can also be run on the FortiGate unit.
Upload Bulk CLI
Command File
Select
Browse
to locate the script file and then select
Apply
to upload
and execute the file.
If the FortiGate unit is configured to use the FortiGuard Analysis and
Management Service, the script will be saved on the server for later
use.
Select From remote
management station
Select to execute a script from the FortiManager unit or the FortiGuard
Analysis and Management Service. Choose the script you want to run
from the list of all scripts stored remotely.
Script Execution History
(past 10 scripts)
A list of the 10 most recently executed scripts.
Name
The name of the script file.
Type
The source of the script file. A local file is uploaded directly to the
FortiGate unit from the management PC and executed. A remote file
is executed on the FortiGate unit after being sent from a FortiManager
unit or the FortiGuard Analysis and Management Service.
Time
The date and time the script file was executed.
Status
The status of the script file, if its execution succeeded or failed.
Delete icon
Delete the script entry from the list.
Tip:
An unencrypted configuration file uses the same structure and syntax as a script file.
You can save a configuration file and copy the required parts to a new file, making any edits
you require. You can generate script files more quickly this way.
Summary of Contents for Gate 60D
Page 705: ...www fortinet com...
Page 706: ...www fortinet com...