> For the complete documentation index, see [llms.txt](https://docs.cloudcyte.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudcyte.com/getting-started/agent-based-deployment/4.-agent-deployment/macos-downloading-and-deploying-the-macosagent.md).

# macOS: Downloading and Deploying The macOSAgent

## The Agent Deployment

The Agent installer link is created dynamically when downloaded. Once the agent is downloaded, it is available from "Settings & Reporting" -> "Deployment Management".

<figure><img src="/files/bwcMmOYf0R9mAsmXskoG" alt=""><figcaption></figcaption></figure>

From this section, basic agent parameters can be configured by clicking the "macOS Agent Settings" button.

<figure><img src="/files/9bUYefZZcsXM7iuYm2lC" alt=""><figcaption></figcaption></figure>

**Agent Configurations**

| Settings Name              | Explanation                                 |
| -------------------------- | ------------------------------------------- |
| Communication Interval     | Agent communication interval to the Server  |
| Data Sending Interval      | Agent data send interval to the Server      |
| Update Check Interval      | Agent update check interval from the Server |
| Service Iteration Interval | Agent sleeps for this time after each cycle |
| Upload Data Chunk Size     | Number of uploaded entries by one query     |

Once the settings are defined, click the "Save" button, and the system will redirect to the download page. Click the "Download Installer and Config" button to download the agent. This action will start to download the installer. The agent (.pkg) and the config file must be downloaded and they need to be in the folder. To install the agent, please double-click on the downloaded pkg file. The installation will start automatically. Alternatively, the below command can be used.&#x20;

```bash
sudo installer -pkg /path/to/package.pkg -target /
```

After installing the agent, the machine information can be seen under the "Asset Management" -> "Endpoint Management".

## Adding Necessary Policies and Endpoints to the macOS Devices Group

Once the agents appear in the Endpoint Management, add them to the Linux Servers Group. Please navigate to "Rules & Policies" -> "Policy Management" -> "Group Management". Select the group named "macOS Devices Group". Assign the policy to the required field and click on the "Save" button placed below on the page.

<figure><img src="/files/jHqhdJk7biCbkeGT17e6" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/oKi91iHNqks6XF3Aqmlh" alt=""><figcaption></figcaption></figure>

In some cases, users need to edit/create a new policy. For a new policy please navigate to "Rules & Policies" -> "Policy Management" -> "Policy Rules" and click on the "+ Policy" button. Edit the field as needed and save the policy. After successfully creating a policy, go to "Group Management" and select the "macOS Devices Group". Assign the policy to the group.

<figure><img src="/files/KbBjahbUjx7ZrISdnIxs" alt=""><figcaption></figcaption></figure>

When policies are assigned to the groups, the data collection starts. Users need to wait for the next iteration of the collection to see the results.
