FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
sakuraju
Staff
Staff
Article Id 327712
Description This article shows how to configure the automation stitch to reboot the managed FortiAP daily at a desired time.
Scope FortiGate v7.2.x and v7.4.x.
Solution

Here are the commands to configure this automation stitch for 1 AM for example:

 

config system automation-stitch

    edit "Restart_AP_stitch"

        set trigger "restart_ap_trigger"

            config actions

                edit 1

                    set action "Restart_AP_action"

                    set required enable

                next

            end

    next

end

 

config system automation-trigger

    edit "restart_ap_trigger"

        set trigger-type scheduled        

        set trigger-hour 1      ---> scheduled for 1 AM, this can be changed as desired.

    next

end

 

config system automation-action

    edit "Restart_AP_action"

        set action-type cli-script

        set script "execute wireless-controller reset-wtp all"

        set accprofile "super_admin"

    next

end

 

Note:

  • To reboot a specific FortiAP, replace the script with 'execute wireless-controller reset-wtp <serial_number_AP>'. 
  • To restart multiple FortiAP (and not all), the command is 'execute wireless-controller reset-wtp <WTP-group>'. WTP-group is the FortiAP group.

Related article

FortiAP groups