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

# Configuring Service Scopes (SRC CLI)

1. Adding Service Scopes (SRC CLI)
2. Assigning Services and Mutex Groups to Service Scopes (SRC CLI)
3. Assigning Service Scopes to VRs or Subscribers (SRC CLI)

## Adding Service Scopes (SRC CLI)

Use the following configuration statement to configure service scopes:

`

services scope name {
  precedence precedence ;
}

`

To add a service scope:

1. From configuration mode, enter the service scope configuration. In this sample procedure, the scope is called EntJunos.
   `
   user@host# edit services scope EntJunos
   `
2. Configure the precedence of the service scope.
   `
   [edit services scope EntJunos]
   user@host# set precedence precedence
   `
3. (Optional) Verify your configuration.

       [edit services scope EntJunos]
       user@host# show
       precedence 2;

## Assigning Services and Mutex Groups to Service Scopes (SRC CLI)

To assign services and Mutex Groups to a scope:

- Add the service or mutex group at the edit services scope hierarchy level.

  For example, to add a service to a service scope called video, enter the following:

  `
  user@host# edit services scope video service Video-Gold
  `

## Assigning Service Scopes to VRs or Subscribers (SRC CLI)

You can assign multiple service scopes to a VR or subscriber, and you can assign a service scope to multiple VRs and subscribers.

To assign a service scope:

1. Enter the configuration for the object to which you want to add the service scope. For example:
   `
   user@host# edit shared network device erx-node1 virtual-router default
   `
2. Assign a scope to the object.
   `
   [edit shared network device erx-node1 virtual-router default]
   user@host# set scope scope
   `

#### Related Topics

- Overview of Restricting and Customizing Services for Subscribers
- Customizing Service Implementations
- Restricting Service Activation
- Configuring Service Scopes (C-Web Interface)

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