run_serial_command
Run CLI commands on network devices over serial connection using Netmiko, processing hosts sequentially to avoid serial port conflicts.
Instructions
Run a CLI command on devices via direct Serial connection (using Netmiko).
Note: Physical serial ports generally cannot be used concurrently by multiple threads, so hosts are processed sequentially (one at a time).
Args: command: The CLI command to execute (e.g., 'show version'). filter_criteria: Dictionary to filter target hosts.
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": {
"command": "<command>"
},
"name": "run_serial_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| filter_criteria | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |