ssh_execute
Run shell commands on remote SSH servers and capture stdout, stderr, and exit code. Connections are reused automatically for efficient execution.
Instructions
Execute a command on a remote SSH server.
Runs the given shell command on the specified server and returns stdout, stderr, and exit code. Connections are established automatically and reused.
EXAMPLES:
Run command: ssh_execute("proxmox", "uptime")
With timeout: ssh_execute("truenas", "zpool status", timeout=60)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute | |
| timeout | No | Command timeout in seconds (default: 30) | |
| server_name | Yes | Server name to execute on (from ssh_list_servers) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||