ssh_monitor
Lists, tests, and manages SSH connections: check profile stats, close connections, or reload profiles. Verify connection state before other commands.
Instructions
Looks after the SSH connections themselves, not the machines behind them: lists the configured profiles, tests one, reports pool statistics, closes a connection or reloads the profile file. Start here on a machine you have not used yet — test names the state before anything else runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which of the five to do. close and reload drop live connections; the other three only read. | |
| profile | No | Which machine. Required for stats, test and close; list and reload take none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ready — logged in, commands run; limited — logged in and commands run, but the shell is not POSIX; no-route — the server was never reached; rejected — the server was reached and refused the login. null — nothing was checked: only the test action reaches the server. | |
| action | No | ||
| broken | No | ||
| legend | No | What the words in this answer mean. A key names the field before the value — "state=limited", "jobs[].state=lost" — and only the values this answer actually used are listed. | |
| profile | No | ||
| profiles | No | ||
| exit_code | No | ||
| latency_ms | No |