- 05 Dec 2024
-
DarkLight
-
PDF
Using Command Templates
- Updated on 05 Dec 2024
-
DarkLight
-
PDF
Command Templates are run-time templates that actively pass commands to a list of specified devices during their runtime. After all responses are collected, the output set is evaluated against a set of defined rules. These executed templates are referred to as Pre and Post steps, which are typically separated by a procedure (router upgrade, service migration, etc.).
Prerequisites
At this time, no prerequisites are required.
Using Command Templates
With the Command Template designer, you can execute commands on physical devices to see the actual response and rules evaluation.
-
Navigate to IAP → Automation Studio → Command Templates.
-
Click the plus (+) icon in the top menu to create a new template. The Create dialog opens.
-
Select Command Template from the dropdown menu. Next, enter a template name.
-
Click Create. The Command Template form displays.
-
Enter the device name in the search field (upper right) to select a device.
-
Add the relevant command variables and rules. For more information, see Defining Command Templates.
- Click Add Command to add a new command.
- Click Add Rule to add a new rule to a command.
- Click the trashcan icon next to either a rule or command to delete.
-
Click Test This Command for a single command or Test All Commands to test all the commands at once.
-
After evaluating the test output, rules will be marked with either a green check mark (passed) or red minus sign (failed) . The device response will appear at the bottom of the screen in the Test results.