Example: Configuring Different Service Tiers for Different Days (SRC CLI)

This example shows how to configure a schedule for an audio service to provide:

The sample schedule:

For demonstration purposes, the sample schedule is configured in the global configuration to make the service schedule available to all subscribers to the two audio services. It is assumed that subscribers are continuously logged in to the system to access the audio services.

To configure a schedule to make the Audio-Gold service available on Saturday and Sunday and the Audio-Bronze service available for the rest of the week:

  1. From configuration mode, access the configuration statement that configures the service configuration named Audio-Bronze in the global configuration. Specify the default schedule authorization plug-in.
    user@host# edit services global service Audio-Bronze [edit services global service Audio-Bronze] user@host# set authorization-plug-in scheduleAuth
  2. 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, audioSchedule.
    user@host# edit services global schedule audioSchedule

    Enter a description of the schedule.

    [edit services global schedule audioSchedule] user@host# set description description
  3. From configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, audioTime1.
    user@host# edit services global schedule audioSchedule event audioTime1
  4. For the time, specify the day of the week as Saturday. For the actions, specify activate for the Audio-Gold service (named Action-1) and deny-deactivate for the Audio-Bronze service (named Action-2).
    [edit services global schedule audioSchedule event audioTime1] user@host# set from day-of-week 6 user@host# set action action-1 type activate service Audio-Gold user@host# set action action-2 type deny-deactivate service Audio-Bronze
  5. From configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, audioTime2.
    user@host# edit services global schedule audioSchedule event audioTime2
  6. For the time, specify the day of the week as Monday. For the actions, specify activate for the Audio-Bronze service (named Action-1) and deny-deactivate for the Audio-Gold service (named Action-2).
    [edit services global schedule audioSchedule event audioTime2] user@host# set from day-of-week 1 user@host# set action action-1 type activate service Audio-Bronze user@host# set action action-2 type deny-deactivate service Audio-Gold

Related Documentation