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


Adding a Service Schedule with the CLI

You can create a service schedule for the following objects:

Use the following statements to configure a service schedule:

schedule name {
    description description;
}

To add a service schedule:

  1. From configuration mode, access the configuration statement that configures the service schedule for the objects for which you can create a service schedule. Enter a unique name for the service schedule.

For example:

user@host# edit services scope name schedule name

user@host# edit services global schedule name

user@host# edit subscribers retailer name schedule name

user@host# edit subscribers retailer name subscriber-folder folder-name
enterprise name schedule name

user@host# edit subscribers retailer name subscriber-folder folder-name
subscriber name schedule name

  1. (Optional) Describe the service schedule.
  2. user@host# set description description
    
    
    
  3. Create schedule entries for the service schedule. A number of schedule entries, or rules, constitute each service schedule.
  4. user@host# set event name
    
    
    

An entry consists of the schedule time, any excluded times, and a list of actions. To create an entry:

See Setting the Time Schedule.

See Setting the Action.

Setting the Time Schedule

When you set up a time schedule, you specify:

Use the guidelines in Guidelines for Entering Time Values.

Use the following statements to configure a time schedule for an event:

schedule name event name from {
    effective effective;
    hour hour;
    minute minute;
    day-of-month day-of-month;
    day-of-week day-of-week;
    month month;
    year year;
    time-zone time-zone;
}

schedule name event name to {
    effective effective;
    hour hour;
    minute minute;
    day-of-month day-of-month;
    day-of-week day-of-week;
    month month;
    year year;
    time-zone time-zone;
}

Use the following statements to configure time exclusions from the schedule:

schedule name event name except name from {
    hour hour;
    minute minute;
    day-of-month day-of-month;
    day-of-week day-of-week;
    month month;
    year year;
    time-zone time-zone;
}

schedule name event name except name to {
    hour hour;
    minute minute;
    day-of-month day-of-month;
    day-of-week day-of-week;
    month month;
    year year;
    time-zone time-zone;
}

To configure the time schedule:

  1. From configuration mode, access the configuration statement that configures the service schedule for the objects for which you can create a service schedule. Enter a name for the event and the exclusion. The specified name is not stored as an identifier, so the arbitrary value can be as simple as a number.
  2. (Optional) Specify the effective period in which to schedule the event. This period is the interval after the associated from or to time during which the scheduled action can be initiated by a subscriber who is logging in to a subscriber session.
  3. user@host# set effective effective
    
    
    
  4. (Optional) Specify the hour of the day in the indicated month in which to schedule the event or exclusion.
  5. user@host# set hour hour
    
    
    
  6. (Optional) Specify the minutes past the indicated hour in which to schedule the event or exclusion.
  7. user@host# set minute minute
    
    
    
  8. (Optional) Specify the day of the month in which to schedule the event or exclusion.
  9. user@host# set day-of-month day-of-month
    
    
    
  10. (Optional) Specify the day of the week in which to schedule the event or exclusion.
  11. user@host# set day-of-week day-of-week
    
    
    
  12. (Optional) Specify the month of the year in which to schedule the event or exclusion.
  13. user@host# set month month
    
    
    
  14. (Optional) Specify the year in which to schedule the event or exclusion.
  15. user@host# set year year
    
    
    
  16. (Optional) Specify the time zone to use in the schedule.
  17. user@host# set time-zone time-zone
    
    
    

Guidelines for Entering Time Values

When you enter time schedules, you can use the values in the following list. See Setting the Time Schedule for a description of the options.

NOTE: Dates in the to statements apply only to services that have an authorization plug-in configured. If an authorization plug-in is not configured for the service associated with the schedule, the entries in the to statements are ignored.


Setting the Action

Use the following configuration statements to configure the list of actions for the service schedule:

schedule name event name action name {
    type (activate | deactivate | deny | deny-deactivate);
    service service;
    substitution [substitution...]; }

To configure the actions:

  1. From configuration mode, access the configuration statement that configures the service schedule for the objects for which you can create a service schedule. Enter a name for the event and the action. The specified name is not stored as an identifier, so the arbitrary value can be as simple as a number.
  2. Specify the type of action. The deny and the deny-deactivate values apply only to services that have an authorization plug-in configured. For more information, see Authorizing Scheduled Services with the CLI.
  3. user@host# set type (activate | deactivate | deny | deny-deactivate)
    
    
    
  4. Specify the name of the service.
  5. user@host# set service service
    
    
    
  6. (Optional) Specify substitutions to be used when the service is activated. Substitutions apply only to service activations.
  7. user@host# set substitution [substitution...]
    
    
    

For more information, see the activateService method of the SAE external interface in the SAE CORBA remote API documentation in the SRC software distribution in the folder SDK/doc/idl or on the Juniper Networks Web site at

http://www.juniper.net/techpubs/software/management/sdx/api-index.html

For more information about substitutions and schedules, see Example: Configuring Different Service Tiers for Different Days with the CLI.

For information about the syntax for substitutions, see Chapter 15, Defining and Acquiring Values for Parameters.

Defining Attributes for Service Activation

Use the following statement to configure attributes for service activation:

schedule name event name action name attribute (sessionName | sessionTag |
sessionTimeout | downStreamBandwidth | upStreamBandwidth) {
    value;
}

To define the attributes:

  1. From configuration mode, access the configuration statement that configures the service schedule for the objects for which you can create a service schedule.
  2. Specify the value for the attribute that is set before the service is activated.
  3. user@host# set attribute (sessionName | sessionTag | sessionTimeout |
    downStreamBandwidth | upStreamBandwidth) value
    
    
    

Subscription attributes apply only to service activations.

For more information about subscription attributes, see the Subscription.html file in the SAE core portal API documentation in the SDK/doc/sae/net/juniper/smgt/sae/portal directory in the SRC software distribution or on the Juniper Networks Web site at

http://www.juniper.net/techpubs/software/management/sdx/api-index.html


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