netmiko.send_show_command_to_group
Run a CLI show command concurrently on all devices in a group, with pre-validation to reject invalid commands before any connection. Returns per-device output.
Instructions
Run the same show command concurrently on every device of a group.
IMPORTANT: If the user message involves network devices, call netmiko.get_metadata FIRST.
The command is validated once before any connection is opened, so a denied command reaches no device at all. Per-device failures are returned per device: a partial result is normal and must be reported as partial, never summarised as if every device answered.
A GROUP MAY MIX PLATFORMS. The same command string is sent to every member, so a
group holding both Cisco IOS and Huawei VRP devices will fail on half of them
whatever you send — show version is invalid on VRP, display version is invalid
on IOS. Check device_type across the group with netmiko.list_devices first; if
the group is heterogeneous, issue one netmiko.send_show_command per platform
instead of forcing a single string onto all of them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Full, un-abbreviated CLI command. | |
| save_output | No | Save per-device output to disk and return filenames. | |
| use_textfsm | No | Parse each output into structured JSON where possible. | |
| device_or_group | Yes | Group name (netmiko.list_groups) or a single device name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |