Add a script
To add a script to an ADOM:
- Browse to the ADOM script list for the ADOM in which you will be creating the script.
- Select Create New, or right-click anywhere in the script list and select New from the menu, to open the Create Script dialog box.
Create a new script
- Enter the required information to create your new script.
Script Name | Type a unique name for the script. |
View Sample Script | This option points to the FortiManager online help. Browse to the Advanced Features chapter to view sample scripts. |
Comments | Optionally, type a comment for the script. |
Run Script on | Select the script target. This settings will affect the options presented when you go to run a script. The options include: l Device Database l Policy Package, ADOM Database l Remote FortiGate Directly (via CLI) |
Script Detail | Type the script itself, either manually using a keyboard, or by copying and pasting from another editor. |
Advanced Device Filters | Select to adjust the advanced filters for the script. The options include:
l OS Type (select from the drop-down list) l OS Version (select from the drop-down list) l Platform (select from the drop-down list) l Build l Device (select from the drop-down list) l Hostname l Serial No. |
- Select OK to create the new script.
Edit a script
All of the same options are available when editing a script as when creating a new script, except the name of the script cannot be changed.
To edit a script, from the script list of the selected ADOM, either double click on the name of the script, or right-click on the script name and select Edit from the menu. The Edit Script dialog box will open, allowing you to edit the script and its settings.