Scripts – FortiManager 5.2

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 menu, to open the Create Script dialog box.
Create a new script
  1. 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:

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

Device (select from the drop-down list) l Hostname l Serial No.

  1. 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.


Having trouble configuring your Fortinet hardware or have some questions you need answered? Check Out The Fortinet Guru Youtube Channel! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!

This entry was posted in Administration Guides, FortiManager and tagged , , on by .

About Mike

Michael Pruett, CISSP has a wide range of cyber-security and network engineering expertise. The plethora of vendors that resell hardware but have zero engineering knowledge resulting in the wrong hardware or configuration being deployed is a major pet peeve of Michael's. This site was started in an effort to spread information while providing the option of quality consulting services at a much lower price than Fortinet Professional Services. Owns PacketLlama.Com (Fortinet Hardware Sales) and Office Of The CISO, LLC (Cybersecurity consulting firm).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.