This example shows how to configure a schedule for an Internet gold service to be active:
The example uses the Internet-GoldAuth service. This service is based on the Internet-Gold service in the sample data with the addition of the scheduleAuth plug-in defined as the authorization plug-in for the service.
The sample schedule:
This configuration avoids schedule overlap.
For demonstration purposes, the sample schedule is configured in the global configuration to make the service schedule available to all subscribers to the Internet-GoldAuth service.
To configure a schedule to make a service available outside work hours and on January 1:
- user@host# edit services global service Internet-GoldAuth
- [edit services global service Internet-GoldAuth]
- user@host# set authorization-plug-in scheduleAuth
- user@host# edit services global schedule afterHours
Enter a description for the schedule.
- [edit services global schedule afterHours]
- user@host# set description description
- user@host# edit services global schedule afterHours
event goldTime
- user@host# edit services global schedule afterHours
event goldTime from
- [edit services global schedule afterHours event goldTime
from]
- user@host# set day-of-week 1
- user@host# set hour 8
- user@host# set minute 30
- user@host# edit services global schedule afterHours
event goldTime to
- [edit services global schedule afterHours event goldTime
to]
- user@host# set day-of-week 5
- user@host# set hour 16
- user@host# set minute 29
- user@host# edit services global schedule afterHours
event goldTime except exclude-1 from
- [edit services global schedule afterHours event goldTime
except exclude-1 from]
- user@host# set month 1
- user@host# set day-of-month 1
By excluding January 1 from the schedule, the Internet-GoldAuth service is active all day.
- user@host# edit services global schedule afterHours
event goldTime action action-1
- [edit services global schedule afterHours event goldTime
action action-1]
- user@host# set type deny-deactivate
- user@host# set service Internet-GoldAuth
- user@host# edit services global schedule afterHours
event goldTime2
- user@host# edit services global schedule afterHours
event goldTime2 from
- [edit services global schedule afterHours event goldTime2
from]
- user@host# set hour 16
- user@host# set minute 30
- user@host# edit services global schedule afterHours
event goldTime2 except exclude-2 from
- [edit services global schedule afterHours event goldTime2
except exclude-2 from]
- user@host# set month 1
- user@host# set day-of-month 1
By excluding January 1 from the schedule, the Internet-GoldAuth service is active all day.
- user@host# edit services global schedule afterHours
event goldTime2 action action-2
- [edit services global schedule afterHours event goldTime2
action action-2]
- user@host# set type activate
- user@host# set service Internet-GoldAuth