Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

firewall schedule recurring

Use this command to add, edit, and delete recurring schedules used in firewall policies.

Use scheduling to control when policies are active or inactive. Use recurring schedules to create policies that repeat weekly. Use recurring schedules to create policies that are effective only at specified times of the day or on specified days of the week.

note icon If a recurring schedule is created with a stop time that occurs before the start time, the schedule starts at the start time and finishes at the stop time on the next day. You can use this technique to create recurring schedules that run from one day to the next. To create a recurring schedule that runs for 24 hours, set the start and stop times to the same time.
config firewall schedule recurring
    edit {name}
    # Recurring schedule configuration.
        set name {string}   Recurring schedule name. size[31]
        set start {string}   Time of day to start the schedule, format hh:mm.
        set end {string}   Time of day to end the schedule, format hh:mm.
        set day {option}   One or more days of the week on which the schedule is valid. Separate the names of the days with a space.
                sunday     Sunday.
                monday     Monday.
                tuesday    Tuesday.
                wednesday  Wednesday.
                thursday   Thursday.
                friday     Friday.
                saturday   Saturday.
                none       None.
        set color {integer}   Color of icon on the GUI. range[0-32]
    next
end

Additional information

The following section is for those options that require additional explanation.

firewall schedule recurring

Use this command to add, edit, and delete recurring schedules used in firewall policies.

Use scheduling to control when policies are active or inactive. Use recurring schedules to create policies that repeat weekly. Use recurring schedules to create policies that are effective only at specified times of the day or on specified days of the week.

note icon If a recurring schedule is created with a stop time that occurs before the start time, the schedule starts at the start time and finishes at the stop time on the next day. You can use this technique to create recurring schedules that run from one day to the next. To create a recurring schedule that runs for 24 hours, set the start and stop times to the same time.
config firewall schedule recurring
    edit {name}
    # Recurring schedule configuration.
        set name {string}   Recurring schedule name. size[31]
        set start {string}   Time of day to start the schedule, format hh:mm.
        set end {string}   Time of day to end the schedule, format hh:mm.
        set day {option}   One or more days of the week on which the schedule is valid. Separate the names of the days with a space.
                sunday     Sunday.
                monday     Monday.
                tuesday    Tuesday.
                wednesday  Wednesday.
                thursday   Thursday.
                friday     Friday.
                saturday   Saturday.
                none       None.
        set color {integer}   Color of icon on the GUI. range[0-32]
    next
end

Additional information

The following section is for those options that require additional explanation.