FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
adawson_van_FTNT
Article Id 194465

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

 

  1. Ensure that 'Show Scripts; is enabled on the System Settings -> Admin -> Admin Settings (this is enabled by default).

 

adawson_FD43955-Admin-Settings-Show-Scripts.png

 

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

 

adawson_FD43955-DVM-Scripts-Tab.png

 

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

 

  1. 'Right-click' on the intended script and click Schedule Script:

 

adawson_FD43955-DVM-Scripts-Schedule-Example.png

 

 

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

 

  1. Select 'OK'.
  2. Verify:

 

adawson_FD43955-DVM-Scripts-Schedule-Example-1.PNG

 

 

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: Bulk block geolocations across multiple FortiGates for SSL VPN from FortiManager

Technical Tip: New Meta Variables and their usage including Jinja scripting.

DOCS: fmscript