jumpserver_job_start
Start a streaming job for long-running commands like tail -f, journalctl -f, tcpdump, or ping; returns a jobId to poll output and stop when finished.
Instructions
Start a STREAMING job on a server — for commands that never return on their own: tail -f /…/stdout.log, journalctl -f -u nginx, tcpdump, top -b, ping. Returns a jobId; then poll jumpserver_job_read(jobId) for the new output and call jumpserver_job_stop(jobId) when done. While a job runs the shell is reserved for it (other commands get SESSION_BUSY), and it auto-stops at maxDuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target asset IP or name. | |
| command | Yes | Streaming command, e.g. "tail -f /usr/weaver/Resin4/log/stdout.log". | |
| confirm | No | Set true after the user approved this command (non-READ classifications require it). | |
| maxDuration | No | Auto-stop after N seconds (default 300, max 900). | |
| accountIndex | No | The account ID shown by KoKo at the `ID>` prompt (usually 1 or 2; matches the number on the screen). |