Example: Configuring a Service to Be Available for a Specified Interval (SRC CLI)
You can use an effective period for a schedule to make a service available to subscribers who log in during a specified time period. The following example shows how to configure a schedule to make a service available from 8 AM until 4 PM.
To make a specified service available from 8 AM until 4 PM:
From configuration mode, access the configuration statement that configures the service schedule in the global configuration. Enter a unique name for the service schedule; for example, effectiveHours.
user@host# edit services global schedule effectiveHoursEnter a description for the schedule.
[edit services global schedule effectiveHours]user@host# set description descriptionFrom configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, availableTime.
user@host# edit services global schedule effectiveHours event availableTimeFrom configuration mode, access the configuration statement that configures the time schedule. Specify the time when the service is first available—8 AM— and for how long the service is to be available—480 minutes.
user@host# edit services global schedule effectiveHours event availableTime from[edit services global schedule effectiveHours event availableTime from]user@host# set hour 8user@host# set effective 480From configuration mode, access the configuration statement that configures the action. Enter a name for the action; for example, action-1. Specify activate for the service; for example, Internet-GoldAuth service.
user@host# edit services global schedule effectiveHours event availableTime action action-1[edit services global schedule effectiveHours event availableTime action action-1]user@host# set type activateuser@host# set service Internet-GoldAuth