-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Machines Connect
Opens the shared SSH connection to a machine and reports the round trip time.
ed machines connect <machine> [--json]
| Name | Type / values | Default | What it does |
|---|---|---|---|
<machine> |
string, required | none | Machine name, ssh alias, id or unambiguous prefix. |
| Name | Type / values | Default | What it does |
|---|---|---|---|
--json |
flag | off | Emit JSON on stdout instead of the line. |
--help, -h
|
flag | off | Print the help for this command on stdout and exit 0. |
$ ed machines connect tuf
connected, 28 ms
{
"connected": true,
"latencyMillis": 26.595375,
"machine": "Asus TUF 7"
}machine here is the name, not the record. latencyMillis is null, and the
human line drops the timing and reads just connected, when the timing probe
did not come back.
ed machines connect tuf
ed machines connect tuf --json | jq .latencyMillis
If a live socket already exists, whether the app opened it or an earlier ed
call did, this reuses it and only measures. Otherwise it starts a ControlMaster
and waits up to 25 seconds for the socket to answer.
The latency is measured by running true on the machine and timing the round
trip, so it includes ssh's own overhead on an established channel rather than
being a network ping.
A machine that cannot be reached exits 4 with ssh's reason translated into a sentence: a changed host key, a rejected credential, a refused connection, a timeout or an unresolvable name each get their own wording. An unknown machine name exits 3.
The socket outlives the process. ControlPersist=10m keeps it up for ten idle
minutes, which is what makes the next command on that machine fast.
-
ed machines, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides