FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
WinterSnowYap
Article Id 426994
Description This article describes how to troubleshoot FortiManager's failed schedule scripts.
Scope FortiManager.
Solution

Below is the scenario:

  1. At the FortiManager CLI, run the command to enable the schedule scripts feature.

 

config system admin setting

    set show_schedule_script enable

end

 

WinterSnowYap_0-1768786277005.png

 

  1. At FortiManager, create a script and run it as a scheduled script.

 

WinterSnowYap_1-1768786277015.png

 

During that time, FortiManager failed to run the scheduled script.

 

Therefore, at FortiManager, go to System Settings -> Task Monitor -> Select View Details for the error logs information by selecting either 'View Progress Report' or 'View Script Execution Result'.

 

WinterSnowYap_2-1768786277017.jpeg

 

WinterSnowYap_3-1768786277023.jpeg

 

WinterSnowYap_4-1768786277027.jpeg

 

Based on the error log information, it mentions line 2; go back to the script and check again.

 

WinterSnowYap_5-1768786277031.png