Commands¶
Device commands¶
One off actions from the device page or the device list:
| Command | What it does | Who |
|---|---|---|
sync |
check in now | admin, helpdesk |
update |
install all updates | admin, helpdesk |
reboot, shutdown |
now or after a delay of up to 1440 minutes (default 1) | admin, helpdesk |
lock, unlock |
blocks new logins and locks running sessions, and releases it again | admin, helpdesk |
message |
notification and dialog in every graphical session | admin, helpdesk |
user_password, user_lock, user_unlock |
reset the password of, lock or unlock a local account; never an account with uid 0; for the helpdesk never an account with admin rights | admin, helpdesk |
diagnostics |
collect redacted agent logs | admin, helpdesk |
user_create, user_admin, user_delete |
create a local account, change its admin right, delete it | admin |
app_install, app_remove, software_remove |
install or remove catalog apps, remove software found on the device | admin |
script |
root shell script with parameters and a timeout, only on devices enrolled with allow_scripts (no protection against admins, see below) |
admin |
allow_uninstall |
allow removing the agent package for one hour | admin |
lost, found |
lost mode and its end (Disk encryption on lost devices) | admin |
wipe |
erase the device | admin |
lost and wipe are confirmed by typing the host name and are sent to one device at a
time. With four eyes approval on, wipe, lost and script wait for a second admin
(Four eyes approval). allow_scripts does not keep an
administrator out of a device: other declarations (repositories, packages, sudo, local
users, artifacts) also run code as root. Four eyes approval, signed commands and the audit
log are the controls against a single administrator
(Known limitations of the agent). The interactive support terminal
(shell) is started on the device's remote shell page and decided by its own setting
(Remote shell); it is no command of the device page or the admin
API.
Commands are signed with the command key and delivered until the device reports a result; the agent runs each one once. Unanswered commands expire after 7 days, finished ones are deleted after 180 days. Results show on the device page and in the audit log. Reboot and shut down now, lock and account lock ask for confirmation first.
Command delivery¶
Besides the regular check in, the agent asks the server every minute whether something waits
(POST /api/v1/poll, a single boolean) and checks in at once if so: queued commands, and an
agent update that is due (a version picked for the device, an admin request, or an approved
version the rollout policy releases for it). Agent updates can carry security fixes, so they
do not wait for the next regular check in. A version being installed or one that already
failed on the device does not trigger check ins. After failed polls the agent waits longer,
up to 5 minutes plus up to half of that as random delay, and returns to one minute with the
first answer. Failed check ins back off the same way: the interval doubles per failure up to
15 minutes, with up to 50 % random delay, so a fleet does not return in the same seconds
after a server outage. When the server answers 503 or 429 (overloaded, too many parallel
package downloads) the agent honors Retry-After (at most 30 minutes, plus jitter) for check
ins, polls and update downloads; a deferred update download is not reported as a failed
update and is offered again later. Restart and shutdown
delays count from when the command was sent in the console; a command that arrives late
still gives users at least one minute of warning.