Technical Tip: How to activate/deactivate an Automation Stitch at a specified time
| Description | This article describes how to activate/deactivate an Automation Stitch at a specified time. In this example, an Automation Stitch is configured to send email alerts when there is a failed admin login attempt. However, the FortiGate administrator only wants to get the email alerts during non-working hours (from 5 PM to 9 AM).
CLI configuration:
config system automation-trigger config system automation-action config system automation-stitch |
| Scope | FortiGate. |
| Solution | Since the Automation Trigger is set to 'Admin login failed', it is not possible to add another Trigger for 'Schedule'.
In this scenario, it is necessary to create two more Automation Stitches. One to schedule a CLI script to enable the 'Email_alert_admin_login_failed' Automation Stitch at 5 PM, and another one to disable it at 9 AM.
Example of an Automation Stitch to schedule a CLI script to enable the 'Email_alert_admin_login_failed' Automation Stitch at 5 PM.
CLI configuration:
config system automation-trigger config system automation-action config system automation-stitch
Example of an Automation Stitch to schedule a CLI script to disable the 'Email_alert_admin_login_failed' Automation Stitch at 9 AM.
CLI configuration:
config system automation-trigger config system automation-action config system automation-stitch
Related documents: |





