Using substitution parameters in rules
You can include substitution parameters in line/lines and pattern/patterns. TrueSight Network Automation substitutes these values when performing the compliance check.
To insert substitution parameters
- While you are on the Grammar tab during rule configuration, click the Substitution Parameters link in the menu.
- Select the category above the list of parameters — Global, Device, Template, Agent, Function, or Device Attribute Label.
For description and usage of each of these categories of substitution parameters, see About-substitution-parameters. - Use your mouse to highlight the text in the Name column. Press Ctrl+C to copy it to your clipboard.
- Place your cursor in the line or pattern field where you want to insert the parameter, and then press Ctrl+V.
In the following example, the rule substitutes function output (${eval functionName}) and trigger values (strings extracted from the line that matched the Trigger criteria).
Related topic
See Updating-device-passwords for an example of using substitution parameters and rules to update the password for a device.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*