[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Example: Configuring a Service to Be Active During Nonwork
Hours with the CLI
This example shows how to configure a schedule
for an Internet gold service to be active:
- Monday–Friday outside the 8:30 AM to 4:30 PM work
day
- January 1of the following year—All day
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:
- Deactivates the Internet-GoldAuth service from 8:30 AM
through 4:29 PM.
- Activates the service at 4:30 PM.
- Does not have a preparation time configured for the SAE.
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:
- From configuration mode, access the configuration statement
that configures the service configuration named Internet-GoldAuth
in the global configuration. Specify the default schedule authorization
plug-in.
- user@host# edit services global service Internet-GoldAuth
- [edit services global service Internet-GoldAuth]
- user@host# set authorization-plug-in scheduleAuth
- From configuration mode, access the configuration statement
that configures the service schedule. Enter a unique name for the
service schedule; for example, afterHours.
- user@host# edit services global schedule afterHours
Enter a description for the schedule.
- [edit services global schedule afterHours]
- user@host# set description description
- From configuration mode, access the configuration statement
that configures the schedule entry. Enter a name for the schedule
entry; for example, goldTime.
- user@host# edit services global schedule afterHours
event goldTime
- From configuration mode, access the configuration statement
that configures the time schedule. For the time, specify the day of
the week as Monday through Friday, and specify that the schedule start
at 8:30 AM and end at 4:29 PM (16:29) each day.
- 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
- From configuration mode, access the configuration statement
that configures the exclusion. Enter a name for the exclusion; for
example, exclude-1. Specify a one-time exclusion for January 1.
- 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.
- From configuration mode, access the configuration statement
that configures the action. Enter a name for the action; for example,
action-1. Specify deny-deactivate for the
Internet-GoldAuth service.
- 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
- From configuration mode, access the configuration statement
that configures the schedule entry. Enter a name for the schedule
entry; for example, goldTime2.
- user@host# edit services global schedule afterHours
event goldTime2
- From configuration mode, access the configuration statement
that configures the time schedule. Specify 4:30 PM (that is, 16:30).
- 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
- From configuration mode, access the configuration statement
that configures the exclusion. Enter a name for the exclusion; for
example, exclude-2. Specify a one-time exclusion for January 1.
- 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.
- From configuration mode, access the configuration statement
that configures the action. Enter a name for the action; for example,
action-2. Specify activate for the Internet-GoldAuth
service.
- 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
Related Topics
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]