on 06-26-2023 01:38 PM - edited yesterday by Nils
This page describes installing the Lansweeper IT Agent Discovery on Windows, Linux, and MacOS including requirements and installation instructions.
Lansweeper's IT Agent Discovery is a lightweight, cross-platform scanning agent that can run on Windows, Linux, and Mac computers. IT Agent Discovery automatically collects an inventory from the computer it's installed on, securely sends scanned data to your Lansweeper Site over HTTPS, and can scan computers outside your network and over the internet.
On this page:
IT Agent Discovery offers a range of advantages compared to other scanning agents, including:
While IT Agent Discovery offers many advantages, it may not be the optimal choice for every environment. To determine the right scanning agent for your needs, consider the following questions:
If you've answered YES to all of these questions, then IT Agent Discovery is right for you.
If you've answered NO to any of these questions, then install LsAgent instead.
Before installing IT Agent Discovery, make sure the requirements below are met.
The computer running IT Agent Discovery must allow the following outbound connections using TLS 1.2 or higher:
URL | Description |
---|---|
https://discovery-gateway.lansweeper.com/ (port 443) | Authenticates, logs in, syncs data, and gets auto updates from your Lansweeper Site. |
https://download.lansweeper.com/ (port 443) | Downloads updates automatically when a new version is released. |
If the computer running IT Agent Discovery requires a proxy server, you can provide the details using a silent installation method.
The IT Agent Discovery can be installed on the following operating systems.
Specifications | Minimum | Recommended |
CPU | x64, single-core 1 GHz | x64, dual-core 2 GHz |
RAM | 2 GB RAM | 8 GB RAN |
Free disk space | 500 MB | 1 GB |
Network speed | 100 Mbps | 1000 Mbps |
By default, IT Agent Discovery will be installed in the following locations:
C:\Program Files\Lansweeper IT Agent Discovery
/opt/lansweeper-it-agent
/Application Support/Lansweeper IT Agent Discovery
By default, logs can be found in the following locations:
sensors\logs\Lansweeper.IT.Sensor.log
hub\logs\Lansweeper.Discovery.Hub.log
C:\Users\%USERNAME%\AppData\Local\Temp\Lansweeper_IT_Agent_Discovery_installer.log
C:\Users\%USERNAME%\AppData\Local\Temp\installbuilder_installer_00000.log (if the installation was not successful)
C:\Users\%USERNAME%\AppData\Local\Temp\Lansweeper.IT.Hub.log
C:\Users\%USERNAME%\AppData\Local\Temp\Lansweeper_IT_Agent_Discovery_uninstaller.log
/tmp/Lansweeper_IT_Agent*.log
When contacting Lansweeper for troubleshooting, we offered a built-in log collector tool, so we have more info during the analysis of the issue.
Gather the logs on Windows using C:\Program Files\Lansweeper IT Agent Discovery\tools\gatherlogs\gatherlogs.ps1
(using an elevated PowerShell prompt). This will return a .zip file, which you share with our support department.
he default path to check the status of your IT Agent: https://localhost:59530/status/hub or https://localhost:59530/status (as soon as IT Agent is a single file)
You can use three methods to install the IT Agent Discovery on a Windows computer.
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
cloudtokenvalue
with your copied linking code. If the computer requires a proxy server, remove the #
for proxyserver=myproxyserver.domain.local
and proxyport=8080
. mode=unattended
accepteula=1
path=C:\Program Files\Lansweeper IT Agent Discovery
cloudtoken=cloudtokenvalue
#proxyserver=myproxyserver.domain.local
#proxyport=8080
X.X.X
in Lansweeper-IT-agent-discovery-X.X.X
with the version number of your installer:Lansweeper-IT-agent-discovery-X.X.X-windows-x64-installer.exe --optionfile lansweeperitagentinstallation.cfg
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
cloudtokenvalue
with the copied linking code. If the computer requires a proxy server, add parameters --proxyserver proxyserveraddress
and --proxyport 8080
. Replace X.X.X
in Lansweeper-IT-agent-discovery-X.X.X
with the version number of your installerLansweeper-IT-agent-discovery-X.X.X-windows-x64-installer.exe --mode unattended --accepteula 1 --path "C:\Program Files\Lansweeper IT Agent Discovery" --cloudtoken cloudtokenvalue
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
To uninstall the IT Agent Discovery on WIndows, either:
"C:\Program Files\Lansweeper IT Agent Discovery\uninstall.exe" --mode unattended
Only silent installs are currently supported for the IT Agent Discovery on Linux.
cloudtokenvalue
with the copied linking code:
sudo dpkg -i ./lansweeper-repository.deb
.sudo apt update
to make the system aware of the repository.sudo env LINKING_CODE=cloudtokenvalue apt install lansweeper-it-agent
.sudo apt update && apt upgrade lansweeper-it-agent
. sudo yum install ./lansweeper-repository-1-0-x86_64.rpm
.sudo yum update
to make the system aware of the repository.sudo env LINKING_CODE=cloudtokenvalue yum install lansweeper-it-agent.x86_64
.sudo yum update && yum upgrade lansweeper-it-agent.x86_64
. Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
To uninstall IT Agent Discovery Linux, open your terminal and run the following commands, depending on your environment.
Debian and Ubuntu: sudo dpkg -r lansweeper-it-agent
Red Hat, CentOS, and SUSE: sudo rpm -e lansweeper-it-agent
There are multiple you can use to install the IT Agent Discovery on a macOS computer.
If the computer running IT Agent Discovery requires a proxy server, use a silent install method.
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
cloudtokenvalue
with your copied linking code and modify the content to suit your needs. If the computer requires a proxy server, remove the #
for proxyserver=myproxyserver.domain.local
and proxyport=8080
.#!/bin/sh
PreinstallConfig="/tmp/LansweeperITAgent-Preinstall.cfg" # Don't change this path!
[ -f $PreinstallConfig ] && chmod 744 $PreinstallConfig
cat > $PreinstallConfig << EOF
mode=unattended
accepteula=1
path=/Library/Application Support/Lansweeper IT Agent Discovery
cloudtoken=cloudtokenvalue
#proxyserver=myproxyserver.domain.local
#proxyport=8080
EOF
chmod 744 $PreinstallConfig
sudo ./tmp/LansweeperPreinstallScript.sh
LansweeperITDiscovery-X.X.X
with the version number of your installer: sudo installer -pkg Lansweeper-IT-agent-discovery-X.X.X-osx-installer.pkg -target /
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
hdiutil attach Lansweeper-IT-agent-discovery-0.9.0-16-osx-installer.dmg
to mount the dmg file.cd "/Volumes/Lansweeper IT Agent Discovery"
to navigate to the volume.cloudtokenvalue
with the copied linking code and replacing X.X.X in Lansweeper-IT-agent-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
.sudo Lansweeper-IT-agent-discovery-X.X.X-X-osx-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --accepteula 1 --path "/Library/Application Support/Lansweeper IT Agent Discovery" --cloudtoken cloudtokenvalue
Once the installation is complete, you can view your IT Agent Discovery in your Lansweeper Site by going to Scanning > Discovery systems > All systems. You can view the asset details discovered with your IT Agent Discovery in Inventory > All assets.
To uninstall IT Agent Discovery on macOS, you can either:
sudo "/Library/Application Support/Lansweeper IT Agent Discovery/uninstall.app/Contents/MacOS/installbuilder.sh" --mode unattended
Now that you've finished installing IT Agent Discovery, learn how to configure IT Agent Discovery.
For a list of answers to frequently asked questions, check out IT Agent Discovery: Frequently Asked Questions.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try NowExperience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now