Installing Collectors in Silent mode

Last updated on 12 February, 2024

In addition to the standard interactive Collector installation process, there is also a non-interactive “Silent” installation mode. The Silent mode is convenient if you are automating installation and are not around to manually answer prompts about user and proxy details.

In this article, we have explained the steps to install Windows and Linux Collectors. We recommend that you read the support article Installing Collectors to understand all the details about Collector installation.

Installing Windows Collectors

Before you install Windows Collectors, you must consider the following points:

  • Ensure to specify the Collector to run as a privileged user. If you do not, the Collector will install and run as a local system. The local system may not have sufficient permissions to monitor other Windows hosts remotely.
  • Ensure that there is no space following any colon when you specify the parameters.
    For example, /p:’Ex@ml!eP@5Sw0rd’ is acceptable but  /p: ’Ex@ml!eP@5Sw0rd’ is not.
  • Ensure to use single quotes if the system password or the proxy password has special characters. For example, /p:’Mycroft+Holmes
  • These parameters can be passed either after the Collector installer .exe or after the PowerShell installation URL (either bootstrap or full package installation). Ensure that the PowerShell window is open in the Administrator mode.
  • The parameter /s: can be included if the Collector version is 30.102 or higher.

To install Windows Collectors in Silent mode, follow these steps:

  1. In your LogicMonitor portal, navigate to Settings | Collectors | Add | Collector.


  2. In the Add a Collector dialog, select Windows 64-bit and specify the version and memory details.
  3. Select >_PowerShell and copy the PowerShell URL.
  4. Launch PowerShell in Administrator mode and paste the copied URL to append the parameters.
[powershell URL or .exe] [/k] [/r:] [/d:] [/q] [/s:] [/a:] [/p:] [/m] [/PROXYHOST:] [/PROXYPORT:] [/PROXYUSER:] [/PROXYPASS:]

Example:

LogicMonitorSetup_6207.exe  /q /a:Administrator /p:'Mycroft+Holmes' /PROXYHOST:10.55.21.60 /PROXYPORT:3128 /PROXYUSER:SherlockHolmes /PROXYPASS:'221_B@BakerStreet'



For Windows Collector, the following parameters are supported:

ParameterDescription
/qIndicates to the installer that the installation should be done in Silent mode.
/k(Optional) Ignores ssl errors when downloading a file.
/r:(Optional) Sets the retry attempt when downloading a file. Default = 2 retry attempts.
/d:(Optional) Indicates the path to install a Collector. It defaults to C:\Program Files\LogicMonitor\Agent
/s:(Optional) Installs custom Collector size (nano, small, medium, large, extra_large, and double_extra_large). It defaults to the Collector size selected in the Logicmonitor portal.
/a:(Optional) Indicates the account the Windows service will run as. It defaults to LocalSystem. The installer requires a Domain\User format. For example, /a:’Domain\User’
/p:(Required if /a: is given) Indicates a password of the specified user account. For example, /p:’p@$$w0rd’
/m(Optional) If this is set, the installer does not check if the total physical memory meets the minimum memory requirement.
/np(Optional) If this is set, the installer does not install the Npcap module. Npcap is a packet capturing module which monitors raw packets needed for NetScan detection.
/NAP(Optional) When using the /a: with a non-admin account, if this parameter is set, permissions are assigned to a non-admin account to run the Collector.
/PROXYHOST:(Optional) Indicates the proxy server address. For example, /PROXYHOST:”proxy.net”
/PROXYPORT:(Optional) Indicates the proxy server port.
/PROXYUSER:(Optional) Indicates the username to authenticate the proxy server, if any.
/PROXYPASS:(Optional) Indicates the password to authenticate the proxy server, if required.

Once the installation is complete, a message confirming successful installation is displayed on the PowerShell terminal.

Installing Linux Collectors

Before you install Linux Collectors, you must consider the following point:

  • The parameters work for both bootstrap and full installation methods. Ensure that you first make the binaries executable (using chmod) before passing the parameters.
  • The parameter -s can be included if the Collector version is 30.102 or higher.

To install Linux Collectors in Silent mode, follow these steps:

  1. In your LogicMonitor portal, navigate to Settings | Collectors | Add | Collector.
  2. In the Add a Collector dialog, select Linux-64 bit and specify the version and memory details.
  3. Select Get cURL cmd and copy the URL.
  4. In the terminal, paste the copied URL and append the necessary parameters to the installation URL.
./LogicmonitorSetup123.bin [-n] [-h] [-y] [-m] [-s size] [-d install path] [-u install user] [-p proxyHost:port] [-U proxyUser] [-P proxyPass]

Example:

sudo chmod +x LogicmonitorSetup123.bin
sudo ./LogicmonitorSetup123.bin -y -p 10.55.21.60:3128 -U SherlockHolmes -P 221BBakerStreet



For Linux Collectors, the following parameters are supported:

ParameterDescription
-h(Optional) Indicates help. It displays a list of flags, their defaults, and their options.
-n(Optional) Displays the Collector’s release version number.
-y(Optional) Installs the Collector silently (does not prompt any questions). Default = false
-d(Optional) Indicates the installation path for the Collector.
Default = /usr/local/logicmonitor
-s(Optional) Installs custom Collector size (nano, small, medium, large, extra_large, and double_extra_large).
It defaults to the Collector size selected in the Logicmonitor portal.
-u(Optional) – Installation user or root, defaults to logicmonitor.
-p(Optional) – Indicates the proxy server (proxyAddr:port) in the form of address:port. For example, 127.0.0.1:8080
-U(Optional) Indicates the username (proxyUser) to authenticate the proxy server, if any.
-P(Optional) Indicates the password (proxyPass) to authenticate the proxy server, if required.
-m(Optional) If this is set, the installer does not check if the total physical memory meets the minimum memory requirement.

Once the installation is complete, a message confirming successful installation is displayed on the terminal.

Verifying the Installation

The steps to verify the installation for both Windows and Linux are similar.

To verify, follow these steps:

  1. On the Add a Collector dialog box, under 4. Verify Connection, select the Collector installation successfully completed check box.
  2. Click Verify Connection.



    A pop-up message confirming successful installation is displayed. This message indicates that the Collector is connected to your portal.

In This Article