Start and stop the agent
After joining a fleet, use the short lifecycle commands:
cmdop start
cmdop status
cmdop restart
cmdop stopcmdop start starts the agent on this machine and waits for a connection
result. It does not open a terminal on another machine; use
cmdop connect for that.
The equivalent long forms are cmdop agent start, cmdop agent status,
cmdop agent restart, and cmdop agent stop.
If an agent may already be running and you want a clean one either way:
cmdop start --restartFor troubleshooting, run the agent in the foreground:
cmdop start --foregroundStart on boot
cmdop start and cmdop stop only run or halt the agent right now. They do
not decide whether the machine comes back online after a reboot — that is
autostart, a separate setting:
cmdop autostart status
cmdop autostart on
cmdop autostart offStopping the agent does not disable autostart, so a stopped machine still comes back after a restart until you turn autostart off.
For a long-running host, install the agent as an operating-system service:
cmdop service install
cmdop service statusSupported service scope and options depend on the host operating system. Run
cmdop service --help on that host for its exact interface.