> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/sonar/deploy-operate/requirements.md).

# Endpoint requirements

What a Windows, Linux or macOS endpoint needs to run the SONAR agent: operating systems, architectures, install privileges and antivirus exclusions.

## What this page covers

What a device needs before you install the SONAR agent on it: which operating systems and processor architectures have an installer, which privileges the installation needs, what gets written to disk, and which folders and processes to exclude from antivirus and EDR scanning.

The SONAR server is operated by DataDike. Nothing on this page applies to it: the requirements below are for the endpoints you manage. For the connections an endpoint must be able to open, see [Network requirements](https://wiki.datadike.com/sonar/deploy-operate/network-requirements.md).

## Operating systems and architectures

The console generates an installer per operating system and architecture. These are the combinations it offers, and the operating system versions the agent runs on.

| Platform | Architectures offered in **Install Agent**                            | Operating system versions                                                             |
| -------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Windows  | **64-bit** (x64), **32-bit** (x86)                                    | Windows 10, Windows 11, Windows Server 2016 and later                                 |
| Linux    | **64-bit** (x86-64), **32-bit** (x86), **ARM 64-bit**, **ARM 32-bit** | Any distribution that uses systemd as its init system, with Linux kernel 3.2 or later |
| macOS    | **Intel 64-bit**, **Apple Silicon**                                   | macOS 12 Monterey and later                                                           |

Points that decide which installer you pick:

* **Windows 64-bit installer on 32-bit Windows.** The 64-bit installer checks the operating system and stops with *This application requires a 64-bit Windows operating system.* Use the **32-bit** installer on 32-bit Windows.
* **Windows on ARM.** There is no ARM installer for Windows.
* **Linux without systemd.** The Linux install script stops with *This install script only supports systemd*. To check a machine, run `ps --no-headers -o comm 1`: the output must be `systemd`.
* **Linux distributions the script recognises.** The script sets up the system locale in one of two ways: one for the Debian family (Ubuntu, Debian, Raspbian, Kali, Linux Mint), and another for the other distributions it recognises (Fedora, Rocky Linux, CentOS, RHEL, Amazon Linux, Arch, openSUSE). Any other systemd distribution is set up the second way.
* **macOS.** Pick **Apple Silicon** for M-series Macs and **Intel 64-bit** for Intel Macs. `uname -m` returns `arm64` on Apple silicon and `x86_64` on Intel.

What each platform can do once the agent is installed differs — software inventory, Windows Update patching and the productivity module are Windows only, for example. See [Supported platforms](https://wiki.datadike.com/sonar/reference/supported-platforms.md).

## Privileges needed to install

| Platform | Who runs the installer                                                      | Account the agent runs as     |
| -------- | --------------------------------------------------------------------------- | ----------------------------- |
| Windows  | A local administrator. The installer requests elevation                     | Local System                  |
| Linux    | `root`, from a session without a graphical display (SSH, or a text console) | `root`                        |
| macOS    | An administrator, through `sudo`                                            | `root` (system launch daemon) |

The Linux script refuses to run otherwise:

* not root: *ERROR: Must be run as root*;
* from a graphical session: *ERROR: Display detected. Installer only supports running headless, i.e from ssh.* Run it over SSH, switch to a text session with `sudo systemctl isolate multi-user.target`, or, if the variable only comes from X forwarding, run `unset DISPLAY` and try again.

The Linux script also needs `bash` and `wget` on the machine.

## What is written to the device

### Windows

| Path                             | Content                                                                                                                                                                                                        |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `C:\Program Files\Sonar\`        | Agent executable `sonarrmm.exe` (about 10.6 MB for 64-bit, 10.1 MB for 32-bit), `uninstall.exe`, the log file `agent.log`, and the productivity module `productivity.exe` (about 25.4 MB) when it is installed |
| `C:\Program Files\Sonar\python\` | Python runtime the agent downloads on its first start, used to run Python scripts                                                                                                                              |
| `C:\Program Files\Mesh Agent\`   | Remote access agent (`MeshAgent.exe`)                                                                                                                                                                          |
| `C:\ProgramData\Sonar\`          | Working folder for scripts and agent updates                                                                                                                                                                   |
| `HKLM\SOFTWARE\Sonar`            | Agent configuration                                                                                                                                                                                            |

A 32-bit agent installed on 64-bit Windows uses `C:\Program Files (x86)\Sonar\` and `C:\Program Files (x86)\Mesh Agent\` instead.

The installer registers **Sonar**, publisher **DataDike®**, in the list of installed programs.

### Linux

| Path                                     | Content                                                            |
| ---------------------------------------- | ------------------------------------------------------------------ |
| `/usr/local/bin/sonaragent`              | Agent executable (about 10.5 to 11.3 MB depending on architecture) |
| `/opt/sonaragent/`                       | Agent working folder                                               |
| `/opt/sonarmesh/`                        | Remote access agent (`meshagent`)                                  |
| `/etc/sonaragent.json`                   | Agent configuration                                                |
| `/etc/systemd/system/sonaragent.service` | Agent service unit                                                 |
| `/var/log/sonaragent.log`                | Agent log                                                          |

### macOS

| Path                                      | Content                                                            |
| ----------------------------------------- | ------------------------------------------------------------------ |
| `/opt/sonaragent/sonaragent`              | Agent executable (about 10.7 to 11.4 MB depending on architecture) |
| `/opt/sonarmesh/`                         | Remote access agent (`meshagent`)                                  |
| `/Library/LaunchDaemons/sonaragent.plist` | Agent launch daemon                                                |
| `/etc/sonaragent.json`                    | Agent configuration                                                |
| `/var/log/sonaragent.log`                 | Agent log                                                          |

{% hint style="info" %}
On Windows, installing the agent sets the Windows Update policy so that Windows does not install updates automatically: patching is then driven from SONAR. Uninstalling the agent turns automatic updates back on. See [Install the agent on Windows](https://wiki.datadike.com/sonar/deploy-operate/install-agent-windows.md) for everything the installer changes.
{% endhint %}

## Antivirus and EDR exclusions

The agent runs commands, scripts and updates on the device as Local System or root, which is exactly the behaviour security products watch for. Add these exclusions in your antivirus or EDR before a large deployment.

### Windows

| Type    | Exclusion                                                                                                  |
| ------- | ---------------------------------------------------------------------------------------------------------- |
| Folder  | `C:\Program Files\Sonar\` (`C:\Program Files (x86)\Sonar\` for a 32-bit agent on 64-bit Windows)           |
| Folder  | `C:\Program Files\Mesh Agent\` (`C:\Program Files (x86)\Mesh Agent\` for a 32-bit agent on 64-bit Windows) |
| Folder  | `C:\ProgramData\Sonar\`                                                                                    |
| Process | `sonarrmm.exe`                                                                                             |
| Process | `MeshAgent.exe`                                                                                            |
| Process | `productivity.exe`, where the productivity module is installed                                             |

The **PowerShell** installation method adds the three folders to the Microsoft Defender exclusion list itself when Defender is active. With any other method, and with any other security product, add them yourself.

### Linux

| Type    | Exclusion                   |
| ------- | --------------------------- |
| File    | `/usr/local/bin/sonaragent` |
| Folder  | `/opt/sonaragent/`          |
| Folder  | `/opt/sonarmesh/`           |
| Process | `sonaragent`                |
| Process | `meshagent`                 |

### macOS

| Type    | Exclusion          |
| ------- | ------------------ |
| Folder  | `/opt/sonaragent/` |
| Folder  | `/opt/sonarmesh/`  |
| Process | `sonaragent`       |
| Process | `meshagent`        |

## How to check a device against these requirements

* **Windows:** in PowerShell, `[Environment]::Is64BitOperatingSystem` returns `True` on 64-bit Windows; `winver` shows the version.
* **Linux:** `ps --no-headers -o comm 1` returns `systemd`; `uname -m` shows the architecture (`x86_64`, `i686`, `aarch64`, `armv7l`); `uname -r` shows the kernel version.
* **macOS:** `uname -m` returns `arm64` or `x86_64`; `sw_vers` shows the macOS version.

## Related pages

* [Network requirements](https://wiki.datadike.com/sonar/deploy-operate/network-requirements.md)
* [Install the agent on Windows](https://wiki.datadike.com/sonar/deploy-operate/install-agent-windows.md)
* [Install the agent on Linux](https://wiki.datadike.com/sonar/deploy-operate/install-agent-linux.md)
* [Install the agent on macOS](https://wiki.datadike.com/sonar/deploy-operate/install-agent-macos.md)
* [Supported platforms](https://wiki.datadike.com/sonar/reference/supported-platforms.md)
