ssh-exec
system/ssh-exec
Type: Command
The ssh-exec command is a non-interactive SSH command, allowing you to execute commands remotely on a device through scripts and scheduler.
| Argument | Type | Description |
|---|---|---|
| address | alt { ip: ipAddr , ipv6-address: composite { ip6: ip6Addr , interface: [ iface_enum] } } | Remote host IPv4 or IPv6 address. |
| command | string | Remote command to execute. |
| user | string | Username for the remote host. |
| password | string | Password for the remote host. You should use SSH PKI authentication instead of plain text passwords. |
| port | num | |
| src-address | alt { ip: ipAddr , ip6: ip6Addr } | Source address to use when connecting. Supports both IPv4 and IPv6. |
| vrf | enum | |
| output-to-file | string | Write output to file instead of 'output' variable. |
| Read-only Argument | Type | Description |
|---|---|---|
| exit-code | num | Returns 0 if the command execution succeeded. |
| output | string | Returns the output of the remotely executed command. |