Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

yuneta_agent22

A minimal second agent — a redundant remote entry point for the control center. Every node runs it alongside the primary yuneta_agent; the init scripts deliberately leave agent22 alive when stopping the node, so a remote operator is never stranded if the primary agent is down or being upgraded (the two agents upgrade each other, never both at once).

Like the primary agent, agent22 dials the control center when the node has an owner, but on its own endpoint — __output_url__ defaults to yunetacontrol.ovh:1995 (port 1995, vs the primary agent’s …com:1994):

tcps://<machine>.<node_owner>.yunetacontrol.ovh:1995

Remote consoles (PTY)

agent22’s distinctive feature is a remote console facility built on a PTY (C_PTY, forkpty). The control center can open an interactive console on the node and stream keystrokes/output to it:

CommandParametersDescription
open-consolename, …Open a PTY console
write-ttyname, content64Write (base64) data to a console’s tty
list-consolesList open consoles
close-consolenameClose a console
helpCommand help

Variant

The same sources also build yuneta_agent44 (main44.c), a second flavour of the minimal agent.