Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
techcookie
New Contributor

Automation Stitch (trigger= schedule) , (action = script CLI)

Hello, 

I have configured an automation stitch that, each 1 hour it flushes IPSEC tunnel

(((config system automation-trigger
edit "Restart_script"
set trigger-type scheduled
set trigger-hour 1
next
end

config system automation-action
edit "Restart_script"
set action-type cli-script
set script "diagnose vpn tunnel flush VPN_****"
set accprofile "super_admin"
next
end )))

But the stitch not working! It's supposed to get triggered each one hour, but the trigger count is 0.

Is anybody familiar with it? 

help me please.

2 REPLIES 2
srajeswaran
Staff
Staff

Can you add the trigger frequency "set trigger-frequency hourly" and check?

 

config system automation-trigger
edit "Restart_script"
set trigger-type scheduled

set trigger-frequency hourly
set trigger-hour 1
next
end

Regards,
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
msanjaypadma
Staff
Staff

Hi @techcookie ,

 

Once you configure "set trigger-frequency hourly" under automation-trigger , you can verify next trigger timestamp using below command.
#dia test application autod 3

Mayur Padma
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors