Installing the Collector on macOS
Overview
Nexthink distributes the Collector for macOS as a disk image DMG file with the following contents:
A PKG package file for installing the Collector from a graphical user interface.
The application csi.app for installing the Collector from the command line interface.
A reporter shell application that gathers system information in the case that you find any issue when running the Collector on macOS.
An uninstaller application to remove the Collector when it is no longer needed.
After the installation, as a sanity check, optionally verify the status of the TCP connection between the Collector and the Engine.
Starting from V6.17, the Mac Collector runs in user mode and it does not need to ask the user for explicit permissions to install any kernel extension. The fact of running in user mode comes with the added benefit of making unnecessary to reboot your macOS devices after updating or uninstalling the Collector.
Prerequisites
The operations described in this article should only be performed by a Nexthink Engineer or a Nexthink Certified Partner.
If you need help or assistance, please contact your Nexthink Certified Partner.
You need:
One or more macOS devices where to install the Collector.
The Nexthink Collector disk image.
The Customer Key and Root Certificate of the primary Appliance. These are essential to enable the complementary TCP connection of the Collector with the Engine. Read this article if you need to install the Collector as part of a POC, before having installed the definitive primary Appliance.
Optional: A third-party automated deployment tool.
Download the Nexthink Collector image file:
Navigate to the Nexthink V6 Release Notes website.
Under Latest downloads, download the Collector package for macOS.
Optional: Download the pertaining SHA-256 hash file to verify your Collector package.
Select the downloaded file Nexthink_Collector_6.30.x.x_x.x.dmg file.
Find the Nexthink_Collector.pkg package file and the csi.app folder inside the image file.
Download the Customer Key and default Root Certificate from the primary Appliance:
Log in to the Web Console of the primary Appliance as admin.
Select the Appliance tab at the top of the Web Console.
Click Collector management in the left-hand side menu.
Click the buttons DOWNLOAD CUSTOMER KEY and DOWNLOAD DEFAULT ROOT CERTIFICATE to download, respectively, the text files holding the Customer Key and the default Root Certificate of the primary Appliance (the latter is required only if you did not replace the certificate for the TCP communication channel of the Appliances with the Collector).
You need to know:
The DNS name or IP address of the Engine, as specified as External DNS name of the Engine in the Web Console.
TCP port number for the connection of the Collector with the Appliances (default 443).
Optional: UDP port number where the Engine is listening for the Collector (default 999, but prefer TCP-only).
Graphical installation
To install the Collector on macOS using the graphical interface:
Double-click the provided disk image file to mount it into your filesystem and see its contents.
Double-click the package file Nexthink_Collector.pkg and the installer starts with the introduction.
Click Continue to proceed with the installation.
In the step Personalization, configure first the settings of the Nexthink Appliance to which the Collector will connect:
Name or IP address: Type in the DNS name or IP address of the Appliance (the Portal, if rule-based collector assignment is turned on; the Engine, otherwise). Respectively, this setting must match either the External DNS name of the Portal or the External DNS name of the Engine.
Optional (recommended) Data over TCP: Tick to send all Collector data through the TCP channel. Ticked by default.
TCP port: Type in the port number on which the Appliance listens for TCP connections from the Collector. Default is 443. A custom TCP port must be in the non-privileged range (port number above 1024).
UDP port: Type in the port number on which the Appliance listens for UDP connections from the Collector. Only enabled if Data over TCP is not checked.
Still on Personalization, configure the proxy settings of the Collector:
Tick Automatic proxy for the Collector to take its configuration from a proxy auto-configuration (PAC) file.
In PAC address, type in the URL of the file that determines the proxy to use.
Tick Manual proxy for the Collector to use the following proxy settings:
Address: Type in the fully qualified domain name (FQDN) or IP address of the proxy.
Port: Type in the port number where the proxy is listening for connections.
In a second step, configure the other settings of the Collector:
Customer Key: Copy and paste the contents of the the file that holds the Customer Key of the primary Appliance.
Root CA: Copy and paste the contents of the file that holds the default Root Certificate of the primary Appliance. If you leave this field empty, the Collector assumes that you replaced the server certificates in the Engine and falls back to using the Keychain Access for verifying the certificates presented by the Appliance. You must replace the certificates to communicate via the default TCP port 443.
Optional Collector tag: Type in an integer number (0 to 2147483647) that identifies a group of Collectors. The Collector tag is visible in the Finder and is useful for defining the entities to build up hierarchies.
Optional Collector string tag: Type in a label (max 2048 characters) that identifies a group of Collectors. The Collector string tag is visible in the Finder and is useful for defining the entities to build up hierarchies.
Optional: Tick Assignment service if you activated the rule-based assignment of Collectors.
Optional: Tick Nexthink Engage to activate the features that let you engage with the end user via campaigns (requires the purchase of the Nexthink Engage product).
Optional: Select the execution policy of scripts included in remote actions:
Disabled (default): the Collector runs no remote action on the device.
Unrestricted: the Collector runs any remote action on the device, regardless of the digital signature of its script.
Trusted publisher: the Collector runs on the device only those remote actions with a Bash script that is signed by a Mac identified developer.
Trusted publisher or Nexthink: the Collector runs on the device only those remote actions with a Bash script that is signed either by Nexthink or by a Mac identified developer.
Click Continue to proceed.
In the step Destination select, the installer program shows the local paths in the system where it is going to install the different components of the Collector. Keep the default paths and click Continue.
The Installation Type step informs you about some details of the installation process, including the amount of space that the program is going to occupy on disk. Click Install to begin with the actual installation.
The installer shows the progress of the installation and it finishes with a summary message. If the installation was successful, click Close to terminate the procedure.
Command line installation
The command line installation lets you install the Collector even when you have access to a computer only through the shell of macOS. Using the command line installation, you can thus install the Collector either locally or remotely through an ssh connection.
Execute the csi application provided with the disk image. To mount the disk image into the file system:
After downloading the image file from Product Downloads, pick one of the following options:
If you are installing the Collector in a remote computer, run the following command to copy the image file to the remote computer:
Log in to the remote computer:
ssh @
If you are installing the Collector in the local computer, change the directory to the one where you downloaded the image file.
Run the follwing command to mount the image file:
Once with the image file mounted into the filesystem of the target Mac computer, install the Collector from the command line:
Change the directory to the path of the csi application:
cd /Volumes/Nexthink_Collector_/csi.app/Contents/MacOS
Type in the following command and provide, as arguments:
address: the FQDN or IP address of the Appliance.
port: the port number of the UDP channel in the Appliance.
tcp_port: the port number of the TCP channel in the Appliance.
rootca: the path to the Root Certificate.
key: the path to the Customer Key file
(Optional) engage: whether to enable the Engage campaigns or not (default is disable).
(Optional) data_over_tcp: whether to enable the sending of all data over the TCP channel (default is enable).
(Optional) use_assignment: whether to enable automatic collector assignment (default is disable).
(Optional) ra_execution_policy: whether to enable the Act remote actions or not with the following options:
disabled (default)
The Collector runs no remote action on the device.
unrestricted
The Collector runs any remote action on the device, regardless of the digital signature of its script.
signed_trusted
The Collector runs on the device only those remote actions with a Bash script that is signed by a Mac identified developer.
signed_trusted_or_nexthink
The Collector runs on the device only those remote actions with a Bash script that is signed either by Nexthink or by a Mac identified developer.
(Optional) proxy_pac_address: provide the URL of a PAC address for automatic configuration of proxy settings.
(Optional) proxy_address: provide the FQDN or IP address of a proxy for manual configuration of proxy settings.
(Optional) proxy_port: provide the port number where a proxy is listening for connections for manual configuration of proxy settings.
(Optional) tag: integer number (0 to 2147483647) to identify an individual or batch installation of Collectors.
(Optional) string_tag: label (max 2048 characters) to identify an individual or batch installation of Collectors.
For instance:
Enterprise deployment
The Collector supports its installation in an enterprise environment being based on either:
Imaging
Mobile Device Management (MDM)
Choose the method that better suits your needs depending on your deployment workflow.
Uninstalling the Collector
To uninstall the Collector, execute the uninstaller script that is provided with the image file. If you have mounted the image file into the filesystem of the computer where the Collector is installed, run the following command from the shell:
Last updated