Technical Tip: How to schedule a running of a script from a FortiManager 6.0 unit
Description
This article explains how to enable the scheduler for CLI/TCL scripts on the FortiManager.
Scope
FortiManager v6.0.x. This document assumes that a CLI or TCL script has already been created on FortiManager.
Solution
By default, this option is disabled.
It is possible to apply scheduled scripts to either:
- Scripts ran on Device Database - (CLI Script Only).
- Scripts ran on Remote FortiGate Directly - (CLI and TCL Scripts).
- Ensure that 'Show Scripts; is enabled on the System Settings -> Admin -> Admin Settings (this is enabled by default).

- Go to the 'Device Manager' pane, Scripts tab will display under Device Manager:

- Open a CLI window on FortiManager and run:
FMG # config system admin setting
(setting)# set show_schedule_script enable
This configuration setting can only be enabled from the FortiManager CLI.
- 'Right-click' on the intended script and click Schedule Script:

- A dialogue box will appear to confirm the script Schedule. Available options are:
- One Time (Custom date and time).
- Reoccurring (Daily, Weekly or Monthly).
- Select 'OK'.
- Verify:

Related articles:
Technical Tip: How to schedule a running of a script from a FortiManager unit
Troubelshooting Tip: How to troubleshoot CLI Script error
Technical Tip: New Meta Variables and their usage including Jinja scripting.
