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

CLI Configuration

In the following example, you configure schedulers that allow associated policies to be used 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 stop-time 18:00
user@host# set schedulers scheduler SunHrs sunday start-time 12:00 stop-time 18:00

The following commands bind these schedules to policy abc 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

If you are finished configuring the device, commit the configuration.

You can verify the schedules using the show schedulers CLI command. See Verifying Scheduled Policies.


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