Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Configuring Global Service Templates (SRC CLI)

 

A global service template is a unique service template that specifies rendering used as part of any mode of any other service template. It is used to control rendering of service-independent requests, such as AbortSession. This template is unique in that its modes, attributes, and variables are available to all services that you define. It is therefore a mandatory part of any router configuration. The global service template is called in every possible scenario.

The examples in this procedure use the following configuration:

  • sic group=g1

  • device template=dt1

  • mode=authentication

  • attribute identifier-attr1

  • attribute=Unisphere-Service-Timeout

Creating an SIC Global Service Template (SRC CLI)

Use the following statements to create an SIC global service template:

To create an SIC global service template:

  1. From configuration mode, access the statement that configures the global.

  2. (Optional) Specify a description for the template.

Configuring the Mode of the SIC Global Service Template (SRC CLI)

Use the following statements to configure the mode of global service template:

To configure the mode of the SIC global service template:

  • From configuration mode, access the statement that configures the global service template mode. For example, to specify the authentication mode:

Configuring Variables for the SIC Global Service Template (SRC CLI)

Variables control the behavior of the rendering process.

Use the following statements to configure global service template variables:

To configure variables in the global service template:

  • From configuration mode, access the statement that configures variables for the global service template and specify a name for the variable. For example, to create a variable named var1:

    Specify the type of variable you want to add to the template. For example, to specify an integer for the variable:

    Where the type is either:

    • integer

    • string

  • Specify the value of the variable. For example, to specify a value of 5 for the variable:

Configuring Normal Attributes for the SIC Global Service Template (SRC CLI)

To configure normal attributes to be included in the global service template:

  1. (Optional) From configuration mode, access the statement that configures normal attributes and specify an identifier for the attribute. For example, to create an identifier named attr1:

  2. (Optional) Specify the attribute as a normal attribute.

  3. Specify the name of the attribute. For example, to specify the attribute Unisphere-Service-Timeout:

  4. (Optional) Specify the attribute to copy the value from. For example, to copy the value from the Session-Timeout attribute contained in the downstream AAA server response, and place it in the Unisphere-Service-Timeout attribute:

  5. Verify the configuration.

Configuring Required Attributes for the SIC Global Service Template (SRC CLI)

With required attributes, if the renderer finds the attribute in the downstream AAA server response, it copies the value into the RADIUS message for the router, otherwise, rendering fails.

To configure required attributes to be included in the global service template:

  1. (Optional) From configuration mode, access the statement that configures required attributes and specify an identifier for the attribute. For example, to create an identifier named attr1:

  2. (Optional) Specify the attribute as a required attribute.

  3. Specify the name of the attribute. For example, to specify the attribute Unisphere-Service-Timeout:

  4. (Optional) Specify the attribute to copy the value from. For example, to copy the value from the Session-Timeout attribute contained in the downstream AAA server response, and place it in the Unisphere-Service-Timeout attribute:

  5. Verify the configuration.

Configuring Default Attributes for the SIC Global Service Template (SRC CLI)

With default attributes, if the renderer finds the attribute in the downstream AAA server response, it copies the value into the RADIUS message. Otherwise, it creates the attribute name with the specified value.

To configure default attributes to be included in a global service template:

  1. (Optional) From configuration mode, access the statement that configures default attributes and specify an identifier for the attribute. For example, to create an identifier named attr1:

  2. (Optional) Specify the attribute as a default attribute.

  3. Specify the name of the attribute. For example, to specify the attribute Unisphere-Service-Timeout:

  4. Specify the value of the attribute. For example, to specify the value of 5:

  5. (Optional) Specify the attribute to copy the value from. For example, to copy the value from the Session-Timeout attribute contained in the downstream AAA server response, and place it in the Unisphere-Service-Timeout attribute:

    If the rendering process finds the attribute in the downstream AAA server response, it copies the value into the RADIUS message. Otherwise, it creates the attribute name with the specified value.

  6. Verify the configuration.

Configuring Parameterized Attributes for the SIC Global Service Template (SRC CLI)

To configure parameterized attributes to be included in a global service template:

  1. (Optional) From configuration mode, access the statement that configures parameterized attributes and specify an identifier for the attribute. For example, to create an identifier named attr1:

  2. (Optional) Specify the attribute as a parameterized attribute.

  3. (Optional) Specify the format of the parameterized attribute.

  4. Specify the name of the attribute.

  5. Verify the configuration.

Configuring Override Attributes for the SIC Global Service Template (SRC CLI)

With override attributes, whether or not the renderer finds the attribute in the downstream AAA server response, it creates the attribute name with the specified value.

To configure override attributes to be included in a global service template:

  1. (Optional) From configuration mode, access the statement that configures override attributes and specify an identifier for the attribute. For example, to create an identifier named attr1:

  2. (Optional) Specify the attribute as an override attribute.

  3. Specify the name of the override attribute. For example, to specify the attribute Unisphere-Service-Timeout:

  4. Specify the value of the attribute. For example, to specify a value of 5:

  5. Verify the configuration.