[Contents] [Prev] [Next] [Index] [Report an Error]

CLI Configuration

  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:00
    user@host# set schedulers scheduler sch1 saturday exclude
    user@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 SatHrs
    user@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.
  6. You can verify the schedules using the show schedulers CLI command. See Verifying Scheduled Policies.

[Contents] [Prev] [Next] [Index] [Report an Error]