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 next to 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).

It runs in its own systemd unit, yuneta_agent22.service: sudo systemctl restart yuneta_agent22 (or sudo service yuneta_agent22 restart) restarts it alone. How the two units are started, stopped and deployed is in yuneta_agent: starting and stopping it.

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-consoles—List open consoles
close-consolenameClose a console
help—Command help

Variant

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