run_command_template
Execute command templates on target devices and evaluate output against defined rules for pre-post procedure steps.
Instructions
Execute a command template against specified devices with rule evaluation.
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 typically used as Pre and Post steps, which are usually separated by a procedure (router upgrade, service migration, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the command template to run | |
| devices | Yes | The list of devices to run the command template against | |
| project | No | Project that contains the command template |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Command template name that was executed | |
| all_pass_flag | Yes | Whether all rules must pass for success (True=all must pass, False=any can pass) | |
| command_results | Yes | List of results for each command/device combination |