Skip to main content
anikolov
Staff
Staff
Mar 26, 2026 11:28 PM UTC

Troubleshooting Tip: FortiProxy does not execute CLI script by triggered automation stitch

  • Sep 29, 2026 10:12 AM UTC
  • 0 replies
  • 114 views
  • Translate All

Description

This article describes a problem with the execution of a CLI script triggered by an automation stitch and outlines a fix.

Scope

FortiProxy v7.4.13.

Solution

A v7.4.13 FortiProxy with a configured daily schedule trigger has a CLI script that should disable policy 1. A snippet of the commands is provided below:

config system automation-stitch
    edit "test"
        set trigger "schedule"
            config actions
                edit 1
                    set action "disable_policy"
                    set required enable
                next
            end
        next
    end

config system automation-trigger
    edit "schedule"
        set trigger-type scheduled
        set trigger-hour 10
        set trigger-minute 57
    next
end

config system automation-action
    edit "disable_policy"
        set action-type cli-script
        set minimum-interval 2
        set script "config firewall policy
            edit 1
                set status disable
            next
        end"
        set accprofile "super_admin"
    next
end

 

Even though the CLI script is called to be executed, the firewall policy remains enabled:

2026-03-04 10:57:08 [symlink_config_file:425] '/data/./config/sys_global.conf.gz' has been symlink'ed to the new version '/data/./config/sys_global.conf.gz.v00000
0036'. The old version '/data/./config/sys_global.conf.gz.v000000035' has been deleted
2026-03-04 10:57:09 zip config file /data/./config/sys_global.conf.gz success!

2026-03-04 10:57:06 __action_cli_script_open()-190: cli script action:disable_policy is called. svc ctx:0x55e0c7af8dc0
accprof:super_admin script:
config firewall policy
    edit 1
        set status disable
    next
end

 

The trigger count on the GUI shows that the stitch is implemented. However, the CLI script is not implemented.

The issue has been identified and has been resolved in FortiProxy v7.4.14 (FortiProxy 7.4.14 - Resolved Issues).

    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