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
Supported operating systems
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.
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 cloudtokenvalue with your copied linking code. If the computer requires a proxy server, remove the # for proxyserver=myproxyserver.domain.local and proxyport=8080 and 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 $PreinstallConfig
Enter the following command:
sudo ./tmp/LansweeperPreinstallScript.sh
Enter the following command, replacing X.X.X in Lansweeper-network-discovery-X.X.X-X-osx-installer.dmg with the version number of your installer. If the computer requires a proxy server, add parameters--proxyservermyproxyserver.domain.local and --proxyport 8080.
The version numbers for your installer can be found in the downloaded .pkg file.
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.
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.dmg
To navigate the volume, enter:
cd "/Volumes/Lansweeper Network Discovery"
Enter the following command, replacing X.X.X in Lansweeper-network-discovery-X.X.X-X-osx-installer.dmg with the version number of your installer. If the computer requires a proxy server, add parameters --proxyserver proxyserveraddress and --proxyport 8080.
The version numbers for your installer can be found in the downloaded .dmg file.
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.