Skip to content

Device commands

Other commands

  • Install all updates: apt (waits up to 15 minutes for a dpkg lock held by unattended-upgrades or PackageKit), dnf, zypper, pacman or apk, then system wide Flatpaks.
  • Run script: a shebang (#!/bin/bash, #!/usr/bin/env python3) picks the interpreter, otherwise /bin/sh; works on hardened systems with a noexec /var. Parameters (NAME=value per line) arrive as environment variables; names are letters, digits and underscore, and variables that change how code is loaded (PATH, LD_*, BASH_ENV, PYTHONPATH …) are refused. The timeout is 1 to 240 minutes (default 30). The device reports exit code, start and end, and the last 16 KiB of stdout and stderr; Script results on the Commands tab shows the newest 50 (200 are kept per device). Recurring scripts (com.limdm.scripts) report the same way instead of an event. Scripts only run on devices enrolled with allow_scripts; with four eyes approval on they wait for a second admin.
  • Send message: a notification and a dialog in every graphical session; the command fails when no dialog could be shown.
  • Collect logs (admins and helpdesk, Commands tab, Diagnostics): the agent sends the last 2000 lines of its own journal (agent and watchdog) and the warnings and errors of the current boot (last 1000 lines), at most 512 KiB. Before sending it masks private keys, key=value pairs with secret names (password, token, secret, api key …), authorization headers, credentials in URLs and recovery keys. The server keeps the newest 10 bundles per device; admins and the helpdesk download them as text, and every download is in the audit log as device.diagnostics.download.

The device list, bulk actions and every action of the device page are described in Areas.