Substitute [substitute]

Syntax:

    substitute on | off

Since 11.0.0

If turned on, CLI will substitute all ${variable} variables in a command with the values set via the "var" command.

Default is on.

The following variables are automatically available:

Variable Description
${routername} Contains the current Router name set with the "sr" command.
${scriptpath} Contains the directory of the currently executing CLI script.

Example:

    >sr router1
    router1>substitute on
    router1>cc /sys$topicmanager/topics
    router1>new stream_${routername}_streamregistry
    router1>_