Skip to main content
fortega
Staff
Staff
April 10, 2025

Technical Tip: How to use automation stitch to put a site protected by FortiWeb in Maintenance

  • April 10, 2025
  • 0 replies
  • 233 views
Description This article describes how to configure an automation stitch to change the status of a Real Server to Maintenance.
Scope FortiWeb 7.6.0 and above.
Solution
  • Navigate to Security Fabric -> Automation -> Action -> Create New -> CLI Script.

Configure a 'Name' and the CLI script to put a server in Maintenance, then Save.

 

Example of CLI script:

 

config server-policy server-pool
    edit Test  <----- Server Pool.
        config pserver-list
            edit 1  <----- ID of Real Server.
                set status maintain  <----- Action to change to Maintenance.
    end
end

 

script_1.PNG 

  • Navigate to Security Fabric -> Automation -> Trigger -> Create New -> Schedule

Configure a 'Name' and Schedule, then Save.

 

shcdule.PNG

 

  • Navigate to Security Fabric -> Automation -> Stitch -> Create New.

Configure a Name and select the Trigger and Action configured above, then Save.

 

stitch.PNG

 

Automation will run in the configured time and the site will put it in Maintenance. Configure a new Automation Stitch to enable the site again.

 

This is a new feature introduced in FortiWeb 7.6.0. See Security fabric automation - FortiWeb administration guide.