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

Configuring Parameters for the Script Service for MX-series Routers (SRC CLI)

Provide parameter substitutions with the values that are in the service definitions for the script service.

Table 10 lists the parameters specified by the sample script service.

Table 10: Parameter Substitutions for MX-series Routers CoA Services

Parameter Name

Description

dynClientIp

IP address of the device.

dynClientPort

UDP port number of the device.

dynServerIp

IP address of the C-series Controller.

dynServerPort

UDP port number of the C-series Controller.

dynSecret

Shared secret between RADIUS server and RADIUS client.

dynRetry

Number of retries for sending RADIUS packets when no RADIUS response is received. The retry interval is 3 seconds.

dynConfig

Content of service definition in the format

<action>.<radiusAttributeName>=<pluginEventAttribute>\n

  • action—Action that is executed on packet content (attribute):
    • start
    • stop
    • start-stop
  • radiusAttributeName—Valid RADIUS attribute specified as follows:
    • Standard RADIUS attribute name or number
    • VSA in the format

      vendor-specific.<vendor#>.<vsa#>.string

  • pluginEventAttribute—Valid Python expression
  • \n—New-line character included between the lines of a configuration containing multiple lines; the entire configuration must be enclosed in quotation marks.

For example:

start-stop.Acct-Session-Id = ifSessionId

“start-stop.Acct-Session-Id=ifSessionId\nstart.vendor-specific.4874. 10.string=’video’\nstop.vendor-specific.4874.10.string=’default’\n"

To configure substitutions for the script parameters:

  1. At the hierarchy for the script service, specify substitutions for the parameters. For example:
    [edit services global service cos-service]
    user@host# set parameter substitution [ dynSecret=\”secret\” dynRetry=2 dynClientIp=10.227.7.111 dynClientPort=9099 "dynConfig=\"start-stop.1.string=primaryUserName\\nstart-stop.Acct-Session-id=ifSessionId \\nstart.vendor-specific.4874.108.string=['T01 3m', 'T04 consumer-scheduler-map']\\nstop.vendor-specific.4874.108.string=['T01 1m', 'T04 data-scheduler-map']\\nstart.vendor-specific.4874.10.string='video' \\nstop.vendor-specific.4874.10.string='default'\\n\"" ]
  2. Verify the configuration.
    [edit services global service cos-service]
    user@host# show

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