Advanced Features : Scripting : Configuring scripts : Add a script
 
Add a script
To add a script to an ADOM:
1. Browse to the ADOM script list for the ADOM in which you will be creating the script.
2. Select Create New, or right-click anywhere in the script list and select New from the pop-up menu, to open the Create Script dialog box.
Figure 167: Create a new script
3. Enter the required information to create your new script.
Script Name
Enter a name for the script.
View Sample Script
This option is not in use.
Description
Optionally, enter a description of your script.
Script Detail
Enter the script itself, either manually using a keyboard, or by copying and pasting from another editor.
Override Script Target
Select to change the script target. This settings will affect the options presented when you go to run a script. The options include:
Run on FortiGate Directly (via CLI)
Run on Policy Package, ADOM Database or Global Policy
Run on DB (default when Override Script Target is not selected).
Note: The Run on DB option is available when editing an existing script.
Advanced Device Filter
Select to adjust the advanced filters for the script. The options include:
OS Type (select from the drop-down list)
OS Version (select from the drop-down list)
Platform (select from the drop-down list)
Build
Device (select from the drop-down list)
Hostname
Serial No.
4. Select OK to create the new script.