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

## Example: Configuring a Service to Be Available for a Specified Interval with the 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:

1. 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 effectiveHours
   `

   Enter a description for the schedule.

   `
   [edit services global schedule effectiveHours]
   user@host# set description description
   `
2. From 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 availableTime
   `
3. From 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 8
   user@host# set effective 480
   `
4. From 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 activate
   user@host# set service Internet-GoldAuth
   `

#### Related Topics

- Adding a Service Schedule (SRC CLI)
- Example: Configuring Different Service Tiers for Different Days with the CLI
- Example: Configuring a Service to Be Active During Nonwork Hours with the CLI

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