Run Command Template
run_command_templateExecute command templates on target devices and evaluate output against rules to automate pre/post checks for network procedures like upgrades.
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.).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"devices": "<devices>"
},
"name": "run_command_template"
}
}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 |