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.
Supported systems
Section titled “Supported systems”| 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.
Create an install token
Section titled “Create an install token”- At my.functual.com, open Agents → Install.
- Choose a label, how long the token is valid, and whether it’s for one machine or several.
- 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.
Install
Section titled “Install”Linux and macOS
Section titled “Linux and macOS”Run in a terminal on the machine:
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.
Windows
Section titled “Windows”Run in PowerShell as administrator:
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.
Many Windows machines
Section titled “Many Windows machines”For Intune, Group Policy or an RMM tool, deploy the signed installer with the token as a property:
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.
Name each machine
Section titled “Name each machine”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:
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.
Check it’s connected
Section titled “Check it’s connected”The machine appears in Agents in the console within a minute, online. On the machine:
functual statusshows 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.
What gets installed
Section titled “What gets installed”- Linux: the
functualpackage, the servicefunctuald@defaultrunning as the unprivileged system userfunctualin 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 servicefunctualdrunning asNT SERVICE\functuald(not an administrator), and a daily scheduled task for updates. State lives inC:\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.
Updates
Section titled “Updates”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.
Remove
Section titled “Remove”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:
sudo functual unenrollsudo apt-get remove functual # Debian, Ubuntusudo dnf remove functual # RHEL, Rocky, Fedora, Amazon Linuxsudo /usr/local/share/functual/uninstall.sh # macOSOn 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.
Copied machines
Section titled “Copied machines”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.