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 silent 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. If you want to install Network Agent on devices with the SUSE Linux Enterprise Server 15 operating system, install the insserv-compat package first to configure Network Agent.
  3. Read the End User License Agreement. Follow the steps below only if you understand and accept the terms of the End User License Agreement.
  4. 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

  5. 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

  6. 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