Skip to content

Install the agent

Agent Functual runs on each machine you want to reach. It connects out to Functual over HTTPS and nothing on the machine listens for connections. Installing takes one command and a token from the console.

Building disk images for devices you ship? See Device images instead: each device enrolls itself on its first boot.

System Versions Architectures
Linux with systemd Ubuntu, Debian, RHEL, Rocky, Fedora, Amazon Linux and relatives 64-bit x86 (amd64) and ARM (arm64)
macOS 12 (Monterey) or later Intel and Apple silicon
Windows 10 and 11 (64-bit), Windows Server 2016 or later x64

32-bit systems and Linux without systemd aren’t supported yet.

  1. At my.functual.com, open Agents → Install.
  2. Choose a label, how long the token is valid, and whether it’s for one machine or several.
  3. Click Create install token. The console shows the token and the install commands once.

Anyone with the token can add machines to your organization until it expires, is used up or is revoked. Revoke a token for several machines once you’re done with it. Machines already installed keep working.

Run in a terminal on the machine:

Terminal window
curl -fsSL https://get.functual.com | sudo sh -s -- <token>

On Linux it adds Functual’s signed package repository (apt or dnf/yum) and installs the functual package. On macOS it downloads the latest package, checks its SHA-256 against Functual’s signed release list and installs it. Then it enrolls the machine and starts the agent. Running it again is safe: the agent is updated, and an enrolled machine is left as it is.

Run in PowerShell as administrator:

Terminal window
irm https://get.functual.com/windows | iex; Install-Functual <token>

It downloads the latest installer, checks its SHA-256 and that it’s signed by Functual, LLC, installs it and enrolls the machine.

For Intune, Group Policy or an RMM tool, deploy the signed installer with the token as a property:

Terminal window
msiexec /i https://get.functual.com/windows.msi /qn ENROLL_TOKEN=<token>

Use a token for several machines, and revoke it when the rollout is done.

A machine shows up under its install token’s label, or its host name when the token has none. To give it its own name when it enrolls, add --label:

Terminal window
curl -fsSL https://get.functual.com | sudo sh -s -- <token> --label "Lobby kiosk"

{serial} and {hostname} in the label are filled in on the machine, so one command can name many machines: --label "Acme Gateway {serial}". If the label uses {serial} and the machine reports no serial number, it doesn’t enroll, so you never get a batch of machines with half a name. You can rename any machine in the console later.

Names are for people to read. They don’t need to be unique and don’t identify the machine: each agent has its own key. When two machines share a name, the command line lists both and asks you to pick.

The machine appears in Agents in the console within a minute, online. On the machine:

Terminal window
functual status

shows its agent ID, the server it talks to, when it enrolled and its version. On Windows, run & "C:\Program Files\Functual\functual.exe" status in PowerShell. On Linux, the service’s log is in journalctl -u functuald@default; on macOS in /Library/Logs/Functual/functuald.log; on Windows in the Application event log, source Functual.

  • Linux: the functual package, the service functuald@default running as the unprivileged system user functual in a systemd sandbox, and a daily update timer. State lives in /var/lib/functual.
  • macOS: /usr/local/bin/functual, a launchd job running as the hidden system user _functual, and a daily update job. State lives in /Library/Application Support/Functual.
  • Windows: C:\Program Files\Functual, the service functuald running as NT SERVICE\functuald (not an administrator), and a daily scheduled task for updates. State lives in C:\ProgramData\Functual.

Each machine gets its own key when it enrolls. The key never leaves the machine, and only the agent’s service and administrators can read it.

The agent updates itself once a day, between 3 and 6 in the morning machine time. If a new version can’t connect, the previous version is put back and the new one is skipped. On Linux, updates come from Functual’s signed package repository; on macOS and Windows, from a signed release list. There’s nothing to configure.

From the console: open the machine in Agents and click Remove. The agent stops working at once and every feature on it ends. The software stays installed until you uninstall it.

On the machine: first revoke the agent, then uninstall:

Terminal window
sudo functual unenroll
sudo apt-get remove functual # Debian, Ubuntu
sudo dnf remove functual # RHEL, Rocky, Fedora, Amazon Linux
sudo /usr/local/share/functual/uninstall.sh # macOS

On Windows, run & "C:\Program Files\Functual\functual.exe" unenroll in PowerShell as administrator, then uninstall Agent Functual in Settings → Apps. Uninstalling without unenroll keeps the enrollment on disk, so installing again reconnects as the same machine.

If you copy a machine that already runs the agent, for example by cloning a virtual machine, both copies have the same key. When the copy reports a different machine ID, the console marks the agent as a possible clone. Remove one of the agents and install the agent again on that machine. For images you build on purpose, use first-boot enrollment so each copy gets its own key.