Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Example: Configuring a Service to Be Active During Nonwork Hours (SRC 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:

  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.

  2. From configuration mode, access the configuration statement that configures the service schedule. Enter a unique name for the service schedule; for example, afterHours.

    Enter a description for the schedule.

  3. From configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, goldTime.

  4. 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.

  5. 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.

    By excluding January 1 from the schedule, the Internet-GoldAuth service is active all day.

  6. 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.

  7. From configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, goldTime2.

  8. From configuration mode, access the configuration statement that configures the time schedule. Specify 4:30 PM (that is, 16:30).

  9. 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.

    By excluding January 1 from the schedule, the Internet-GoldAuth service is active all day.

  10. 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.