Kaspersky Security Center 13.1

Installing Network Agent for Linux in silent mode (with an answer file)

You can install Network Agent on Linux devices by using an answer file—a text file that contains a custom set of installation parameters: variables and their respective values. Using this answer file allows you to run an installation in the silent (non-interactive) mode, that is, without user participation.

To perform installation of Network Agent for Linux in silent mode:

  1. Prepare the relevant Linux device for remote installation. Download and create the remote installation package, by using a .deb or .rpm package of Network Agent, by means of any suitable package management system.
  2. Read the End User License Agreement. Follow the steps below only if you understand and accept the terms of the End User License Agreement.
  3. Set the value of the KLAUTOANSWERS environment variable by entering the full name of the answer file (including the path), for example, as follows:

    export KLAUTOANSWERS=/tmp/nagent_install/answers.txt

  4. Create the answer file (in TXT format) in the directory that you have specified in the environment variable. Add to the answer file a list of variables in the VARIABLE_NAME=variable_value format, each variable on a separate line.

    For correct usage of the answer file, you must include in it a minimum set of the three required variables:

    • KLNAGENT_SERVER
    • KLNAGENT_AUTOINSTALL
    • EULA_ACCEPTED

    You can also add any optional variables to use more specific parameters of your remote installation. The following table lists all of the variables that can be included in the answer file:

    Variables of the answer file used as parameters of Network Agent for Linux installation in silent mode

    Variables of the answer file used as parameters of Network Agent for Linux installation in silent mode

    Variable name

    Required

    Description

    Possible values

    KLNAGENT_SERVER

    Yes

    Contains the Administration Server name presented as fully qualified domain name (FQDN) or IP address.

    DNS name or IP address.

    KLNAGENT_AUTOINSTALL

    Yes

    Defines whether silent (non-interactive) installation mode is enabled.

    1—Silent mode is enabled; the user is not prompted for any actions during installation.

    Other—Silent mode is disabled; the user may be prompted for actions during installation.

    EULA_ACCEPTED

    Yes

    Defines whether the user accepts the End User License Agreement (EULA) of Network Agent; when missing, can be interpreted as non-acceptance of the EULA.

    1—I confirm that I have fully read, understand, and accept the terms and conditions of this End User License Agreement.

    Other or not specified—I do not accept the terms of the License Agreement (installation is not performed).

    KLNAGENT_PROXY_USE

    No

    Defines whether connection with the Administration Server will use proxy settings. The default value is 0.

    1—Proxy settings are used.

    Other—Proxy settings are not used.

    KLNAGENT_PROXY_ADDR

    No

    Defines the address of the proxy server used for connection with the Administration Server.

    DNS name or IP address.

    KLNAGENT_PROXY_LOGIN

    No

    Defines the user name used for login to the proxy server.

    Any existing user name.

    KLNAGENT_PROXY_PASSWORD

    No

    Defines the user password used for login to the proxy server.

    Any set of alphanumeric characters allowed by the password format in the operating system.

    KLNAGENT_VM_VDI

    No

    Defines whether Network Agent is installed on an image for creation of dynamic virtual machines.

    1—Network Agent is installed on an image, which is subsequently used for creation of dynamic virtual machines.

    Other—No image is used during installation.

    KLNAGENT_VM_OPTIMIZE

    No

    Defines whether the Network Agent settings are optimal for hypervisor.

    1—The default local settings of Network Agent are modified so that they allow optimized usage on hypervisor.

    KLNAGENT_TAGS

    No

    Lists the tags assigned to the Network Agent instance.

    One or multiple tag names separated with semicolon.

    KLNAGENT_UDP_PORT

    No

    Defines the UDP port used by Network Agent. The default value is 15000.

    Any existing port number.

    KLNAGENT_PORT

    No

    Defines the non-TLS port used by Network Agent. The default value is 14000.

    Any existing port number.

    KLNAGENT_SSLPORT

    No

    Defines the TLS port used by Network Agent. The default value is 13000.

    Any existing port number.

    KLNAGENT_USESSL

    No

    Defines whether Transport Layer Security (TLS) is used for connection.

    1 (default)—TLS is used.

    Other—TLS is not used.

    KLNAGENT_GW_MODE

    No

    Defines whether connection gateway is used.

    1 (default)—The current settings are not modified (at the first call, no connection gateway is specified).

    2—No connection gateway is used.

    3—Connection gateway is used.

    4—The Network Agent instance is used as connection gateway in demilitarized zone (DMZ).

    KLNAGENT_GW_ADDRESS

    No

    Defines the address of the connection gateway. The value is applicable only if KLNAGENT_GW_MODE=3.

    DNS name or IP address.

  5. Install Network Agent:
    • To install Network Agent from an RPM package to a 32-bit operating system, execute the following command:
      # rpm -i klnagent-<build number>.i386.rpm
    • To install Network Agent from an RPM package to a 64-bit operating system, execute the following command:
      # rpm -i klnagent64-<build number>.x86_64.rpm
    • To install Network Agent from an RPM package on a 64-bit operating system for the Arm architecture, execute the following command:
      # rpm -i klnagent64-<build number>.aarch64.rpm
    • To install Network Agent from a DEB package to a 32-bit operating system, execute the following command:
      # apt-get install ./klnagent_<build number>_i386.deb
    • To install Network Agent from a DEB package to a 64-bit operating system, execute the following command:
      # apt-get install ./klnagent64_<build number>_amd64.deb
    • To install Network Agent from a DEB package on a 64-bit operating system for the Arm architecture, execute the following command:
      # apt-get install ./klnagent64_<build number>_arm64.deb

Installation of Network Agent for Linux starts in silent mode; the user is not prompted for any actions during the process.

Page top
[Topic 199693]