Skip to main content
caunon
Staff
Staff
Jan 29, 2025 5:04 PM UTC

Troubleshooting Tip: Cannot run FortiGate’s CLI command ‘diagnose ips cfgscript run’

  • Jun 17, 2026 8:21 AM UTC
  • 0 replies
  • 1199 views
  • Translate All

Description

This article describes how to handle a situation where the CLI command 'diagnose ips cfgscript run' cannot be run in a FortiGate unit.

Scope

FortiGate v7.0.17 ,v7.4.7 ,v7.6.2.

Solution

  1. On the FortiGate unit, go to the CLI and run the following CLI command:

diagnose ips cfgscript run

 

The following error message will appear: 

FGT # diagnose ips cfgscript run

command parse error before 'cfgscript'
Command fail. Return code -61

 

  1. This happens after upgrading FortiGate firmware version to v7.0.17 ,v7.4.7 ,v7.6.2 and above.
    This is because the cfgscript command has been removed in these versions.

The command can be used to run Lua code for numerous purposes. For security reasons, the command has been removed. Refer to PSIRT ID FG-IR-26-143.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024