Example: Configuring Schedulers (CLI)

To configure a scheduler, you enter a meaningful name and a start and stop time for the scheduler. You can also attach comments.

To configure a scheduler using the CLI configuration editor:

  1. Use the following commands to set a schedule that allows a policy, which refers to it, to be used for packet match checks from 8 AM to 9 PM all days of the week from October 1, 2007 to April 1, 2008 except Saturdays and Sundays. Otherwise, the policy is inactive.
    user@host# set schedulers scheduler sch1 start-date 2007-10-01.08:00 stop-date 2008-04-01.21:00user@host# set schedulers scheduler sch1 saturday excludeuser@host# set schedulers scheduler sch1 sunday exclude
  2. Use the following command to associate the schedule to the policy, allowing access during regular work hours, as specified.
    user@host# set security policies from-zone green to-zone red policy abc scheduler-name sch1
  3. Use the following commands to set schedulers that allow associated policies to check for packet matches from noon to 6 PM on Saturdays and Sundays. Otherwise the policy is inactive.
    user@host# set schedulers scheduler SatHrs saturday start-time 12:00:00 stop-time 18:00:00 user@host# set schedulers scheduler SunHrs sunday start-time 12:00 stop-time 18:00
  4. Use the following commands to bind these schedules to the policy, allowing access during the specified weekend hours.
    user@host# set security policies from-zone green to-zone red policy abc scheduler-name SatHrsuser@host# set security policies from-zone green to-zone red policy abc scheduler-name SunHrs
  5. If you are finished configuring the device, commit the configuration.

Related Topics