Kaspersky Secure Mobility Management
Local installation of iOS MDM Server on a device via an installation package

Kaspersky Security Center Web Console lets you install iOS MDM Server on a local device using an installation package, that is, without interactively inputting the installation settings.

Before installing iOS MDM Server on a device, make sure the Kaspersky Mobile Devices Protection and Management and iOS MDM Server settings plug-ins are installed.

To install and configure iOS MDM Server on a local device manually:

  1. Install iOS MDM Server:
    1. Read the End User License Agreement. Use the command below only if you understand and accept the terms of the End User License Agreement.
    2. Depending on your operating system, run one of the following commands to launch the installation file:
      1. For Debian:

        apt install /<path>/kliosmdm_<version_number>_amd64.deb

      2. For Red Hat Enterprise Linux:

        yum install /<path>/kliosmdm_<version_number>.x86_64.rpm -y

        iOS MDM Server is installed. The installer offers to start the setup procedure by executing the postinstall.pl script.

  2. Configure iOS MDM Server using one of the methods:
    1. Configuration with the postinstall settings specified by the interactive step-by-step wizard:
      1. Run the following command:

        /opt/kaspersky/iosmdm/lib/bin/setup/postinstall.pl

    2. Configuration with the key arguments specified as postinstall settings:
      1. Run the following command:

        opt/kaspersky/bin/postinstall.pl -- <params>

        where <params> is one of the settings specified in the iOS MDM Server installation settings table below.

The names and possible values for the settings that can be configured when installing iOS MDM Server are listed in the table. You can specify these settings in any convenient order.

iOS MDM Server installation settings

 

Setting name

Setting description

Values

EULA_ACCEPTED

Acceptance of the terms of the End User License Agreement.

This setting is mandatory.

  • 1 - I have fully read, understand and accept the terms of the End User License Agreement
  • Other value or no value - I do not accept the terms of the License Agreement (installation is not performed)

DONT_USE_ANSWER_FILE

Whether or not to use a TXT answer file with iOS MDM Server installation settings.

The file is included in the installation package or stored on the Administration Server. You do not have to specify an additional path to the file.

This setting is mandatory.

  • 1 - Do not use an answer with settings
  • Other value or no value - Use an answer file with settings

CONNECTORPORT

Local port for connecting the iOS MDM service to Network Agent.

The default port number is 9799.

This setting is optional.

Numerical value - 9799

LOCALSERVERPORT

Local port for connecting Network Agent to the iOS MDM service.

The default port number is 9899.

This setting is optional.

Numerical value - 9899

EXTERNALSERVERPORT

Port for connecting a device to iOS MDM Server.

The default port number is 443.

This setting is optional.

Numerical value - 443

EXTERNAL_SERVER_URL

External address of the device on which iOS MDM Server is to be installed. This address will be used for connecting managed mobile devices to the iOS MDM service. The device must be available for connection through iOS MDM.

The address must not include the URL scheme and number of the port because these values will be added automatically.

This setting is optional.

Device FQDN - example.fqdn.com

Example:

/opt/kaspersky/bin/postinstall.pl --EULA 1 --DONT_USE_ANSWER_FILE 1 --EXTERNALSERVERPORT 9443 --CONNECTORPORT 9799

To install and configure iOS MDM Server in silent mode automatically using an answer file:

An answer file is a text file that contains a custom set of installation settings (variables and their corresponding values).

  1. Create an answer file (in TXT format) in the directory where the installation will be performed: /tmp/answers.txt.
  2. Specify the required values in the answer file:
    • EULA_ACCEPTED=1

      Acceptance of the terms of the End User License Agreement.

    • KLIOSMDM_AUTOINSTALL=1

      Using a TXT answer file with iOS MDM Server installation settings.

    • EXTERNALSERVERPORT=443

      Port for connecting a device to iOS MDM Server.

    • CONNECTORPORT=9799

      Local port for connecting the iOS MDM service to Network Agent.

    • LOCALSERVERPORT=9899

      Local port for connecting Network Agent to the iOS MDM service.

    • EXTERNAL_SERVER_URL=example.fqdn.com

      External address of the device on which iOS MDM Server is to be installed.

  3. Set the value of the KLAUTOANSWERS environment variable by entering the full name of the answer file (including the path), for example: export KLAUTOANSWERS=/tmp/answers.txt.
  4. Launch the iOS MDM Server installation.

iOS MDM Server is installed and configured in silent mode automatically using an answer file.