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


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.
  2. user@host# edit services global schedule effectiveHours 
    
    
    

Enter a description for the schedule.

[edit services global schedule effectiveHours] 
user@host# set description description 

  1. From configuration mode, access the configuration statement that configures the schedule entry. Enter a name for the schedule entry; for example, availableTime.
  2. 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.
  4. 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 
    
    
    
  5. 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.
  6. 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 
    
    
    


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