Skip to main content
Ahmed_Galal
Staff
Staff
Mar 24, 2025 1:27 PM UTC

Technical Tip: How to trigger a CLI script when a virtual server goes down.

Description This article describes how to configure an Automation Stitch to trigger a CLI script when a virtual server goes down
Scope FortiADC.
Solution

Prerequisite:

  • Read/Write admin account.
  • Determine which script is needed to be triggered when the virtual server becomes down.

 

Steps:

  • Navigate to Security Fabric -> Automation -> Create a new Stitch. 

Screenshot_1.png

 

  • Select System Events -> Select Real Server -> Fill in the Pool name & Real Server IP.
  • In the Event section, select Real Server HC Down & UP.


Screenshot_2.png

 

  • Select Add Action -> Select CLI Script -> Fill in the name.
  • Create a new Alert -> Fill the Script content as planned earlier. 
  • The Script content can be any CLI command. For example: 

 

get system status


Screenshot_3.png

 

Screenshot_4.png

 

Related articles:

Creating automation stitches - FortiADC handbook

    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