FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
KenYap
Staff
Staff
Article Id 292396
Description This article describes how to troubleshoot CLI Script error.
Scope FortiManager.
Solution

Below is the result for good and error CLI script scenario:

 

Managed device information at FortiManager:

 

FMG_ScriptTroubleshoot_001.PNG

 

No issue scenario result: 

  1. Create a correct CLI Script at FortiManager.

 

FMG_ScriptTroubleshoot_002.PNG

 

  1. FortiManager runs the debug CLI command. After running the CLI command then install CLI Script.

 

dia debug application securityconsole 255

dia debug en

 

FMG_ScriptTroubleshoot_003.PNG

 

  1. FortiManager checks Task Monitor to check on the detailed information.


FMG_ScriptTroubleshoot_004.PNG

 

Issue scenario result: 

  1. Create a correct CLI Script at FortiManager.

 

FMG_ScriptTroubleshoot_005.PNG

 

  1. FortiManager runs the debug CLI command. After running the CLI command then install the CLI Script:

     

    dia debug application securityconsole 255

    dia debug en

     

    FMG_ScriptTroubleshoot_006.PNG

     

    FMG_ScriptTroubleshoot_007.PNG

     

     

     

    FMG_ScriptTroubleshoot_008.PNG

  2. FortiManager checks Task Monitor to check on the detailed information. 

Related Articles:

Technical Tip: How to schedule a running of a script from a FortiManager 6.0 unit

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

Docs: fmscript