Most trials already include one hub and sensor. Use these instructions when you need to add a second or third sensor, if you have additional networks, want to balance performance, or need redundancy.
Prerequisites
Review the Discovery Hub and Sensor requirements
Ensure this is the correct discovery system for your use case
Review the supported operating systems
Supported operating systems
macOS 13 to current release, x64. Rosetta is required on Apple Silicon (M1 to current chip) until native ARM builds are available.
Install the sensor and hub
Recommended for most users.
In your preferred site, go to Discovery > Systems > Download installers/packages.
Select Network Discovery > Download Network Discovery disk image.
Open the installation file.
In the setup wizard:
Choose an installation directory, then select Next.
Select both Install Hub and Install IT Sensor.
Accept the default configuration (Hub and IT Sensor on localhost, port 59525). You can change this later if needed.
Select Next to continue.
Wait for the setup to complete. Installation usually takes only a few minutes.
Once the installation is complete, you will be redirected to the Lansweeper Platform. Select the site you already created.
In your preferred site, go to Discovery > Systems > Download installers/packages.
Select Network Discovery > Download Network Discovery package and Download Network Discovery package silent installation configuration to download both files.
In your site, select Systems > Link discovery system > Create new code. Specify an expiration date, then select Apply and copy the generated code.
NOTE
The expiration date indicates when the linking code can no longer be used to establish a new connection between a site and your discovery system. Any existing connection between the system and your site will remain active after the expiration date.
On your computer, open the downloaded Network Discovery package silent installation configuration file.
In the file, replace
cloudtokenvaluewith your copied linking code. If the computer requires a proxy server, remove the#forproxyserver=myproxyserver.domain.localandproxyport=8080and modify the values as needed for your installation.#!/bin/sh PreinstallConfig="/tmp/LansweeperNetworkDiscovery-Preinstall.cfg" # Don't change this path! [ -f $PreinstallConfig ] && chmod 744 $PreinstallConfig cat > $PreinstallConfig << EOF mode=unattended accepteula=1 path=/Library/Application Support/Lansweeper Network Discovery cloudtoken=cloudtokenvalue #proxyserver=myproxyserver.domain.local #proxyport=8080 EOF chmod 744 $PreinstallConfigEnter the following command:
sudo ./tmp/LansweeperPreinstallScript.shEnter the following command, replacing
X.X.XinLansweeper-network-discovery-X.X.X-X-osx-installer.dmgwith the version number of your installer. If the computer requires a proxy server, add parameters--proxyservermyproxyserver.domain.localand--proxyport 8080.Installer version
The version numbers for your installer can be found in the downloaded
.pkgfile.sudo Lansweeper-network-discovery-X.X.X-X-osx-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --accepteula 1 --path /Library/Application Support/Lansweeper Network Discovery/ --cloudtoken cloudtokenvalue
In your preferred site, go to Discovery > Systems > Download installers/packages.
Select Network Discovery > Download Network disk image to download the installer.
In your site, select Systems > Link discovery system > Create new code. Specify an expiration date, then select Apply and copy the generated code.
NOTE
The expiration date indicates when the linking code can no longer be used to establish a new connection between a site and your discovery system. Any existing connection between the system and your site will remain active after the expiration date.
In an elevated command prompt, enter the following command to mount the DMG file:
Lansweeper-network-discovery-X.X.X-X-osx-installer.dmgTo navigate the volume, enter:
cd "/Volumes/Lansweeper Network Discovery"Enter the following command, replacing
X.X.XinLansweeper-network-discovery-X.X.X-X-osx-installer.dmgwith the version number of your installer. If the computer requires a proxy server, add parameters--proxyserver proxyserveraddressand--proxyport 8080.Installer version
The version numbers for your installer can be found in the downloaded
.dmgfile.sudo Lansweeper-network-discovery-X.X.X-X-osx-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --accepteula 1 --path /Library/Application Support/Lansweeper Network Discovery/ --cloudtoken cloudtokenvalue
Next steps
Now that your hub and sensors are installed, you can create a discovery credential to access more asset details and create a discovery action to specify specifically what to scan and when.