run_show_command
Run read-only show commands on Cisco IOS, IOS-XE, and Nexus switches over SSH. Fetch device state and configuration securely using privilege separation and a fail-closed allowlist.
Instructions
Run an arbitrary read-only 'show' command on a device.
Only 'show' commands are permitted; the server rejects anything else. On IOS/IOS-XE, 'show running-config' is the only command that escalates to the privilege-15 account -- everything else, and every command on NX-OS, uses the read-only account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |