Obtaining iOS MDM Server diagnostic data
When creating a request to Kaspersky Technical Support, you may be asked to create and attach a trace file. Trace files are used by Technical Support for diagnostic purposes. They contain all steps of application command execution written in the file, which allows to detect the step on which an error occurs.
We recommend that you obtain the traces of iOS MDM Server together with the traces of Network Agent, as they contain the iOS MDM Server connector details.
There are several tracing levels for iOS MDM Server:
- 0 - CRITICAL
- 1 - ERROR
- 2 - MESSAGE
- 3 - DEBUG
Ask a support engineer which tracing level to set. If the Technical Support engineer has not specified the trace level, we recommend obtaining level 2 traces.
To enable the iOS MDM Server tracing and create trace files:
- Open the iOS MSM Server settings file
/var/opt/kaspersky/iosmdm/settings.ini
. - Specify the values required to enable tracing. We recommend that you specify the following default values:
- LogCommEnabled=1
Enabling or disabling the tracing of the iOS MDM Server and connector communication library.
- LogSettingsEnabled=1
Enabling or disabling the tracing of the iOS MDM Server and connector settings library.
- LogCommVerboseLevel=2
The tracing level of the iOS MDM Server and connector communication library.
- LogSettingsVerboseLevel=2
The tracing level of the iOS MDM Server and connector settings library.
- LogVerboseLevel=2
The tracing level of iOS MDM Server.
- LogFolder=/var/opt/kaspersky/iosmdm
The directory for writing trace files.
- LogCommEnabled=1
- Restart the iOS MDM Server and Network Agent services by running the following commands:
systemctl restart klnagent
systemctl restart kliosmdm
The iOS MDM Server tracing is enabled. Trace files are created in the directory that you specified as the LogFolder value: klcon_comm.log, klcon_settings.log, klsrv.log, klsrv_comm.log, klsrv_settings.log.
To disable the iOS MDM Server tracing:
- Open the iOS MSM Server settings file
/var/opt/kaspersky/iosmdm/settings.ini
. - Modify the file by deleting the strings that have been created to enable tracing:
- LogCommEnabled=1
- LogSettingsEnabled=1
- LogCommVerboseLevel=2
- LogSettingsVerboseLevel=2
- LogVerboseLevel=2
- LogFolder=/var/opt/kaspersky/iosmdm
- Restart the iOS MDM Server and Network Agent services by running the following commands:
systemctl restart klnagent
systemctl restart kliosmdm
The iOS MDM Server tracing is disabled.