Example: Configuring Different Service Tiers for Different Days (SRC CLI)
This example shows how to configure a schedule for an audio service to provide:
Gold level of service on weekends
Bronze level of service on weekdays
The sample schedule:
Uses the Audio-Gold and Audio-Bronze services in the sample data.
Activates the Audio-Gold service and denies the Audio-Bronze service on Saturday.
Activates the Audio-Bronze service and denies and deactivates the Audio-Gold service on Monday.
Does not have a preparation time configured for the SAE.
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:
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 scheduleAuthFrom 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 audioScheduleEnter a description of the schedule.
[edit services global schedule audioSchedule]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, audioTime1.
user@host# edit services global schedule audioSchedule event audioTime1For 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 6user@host# set action action-1 type activate service Audio-Golduser@host# set action action-2 type deny-deactivate service Audio-BronzeFrom 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 audioTime2For 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 1user@host# set action action-1 type activate service Audio-Bronzeuser@host# set action action-2 type deny-deactivate service Audio-Gold