Editing general application settings

Root privileges are required to change application settings.

To edit the general application settings:

  1. Save the general application settings to the configuration file using the --get-app-settings command:

    kics-control [-T] --get-app-settings --file <configuration file path>

  2. Open the created configuration file, edit the necessary settings, and save the changes.
  3. Import the settings from the configuration file into the application using the --set-app-settings command:

    kics-control [-T] --set-app-settings --file < configuration file path>

    To enable use of Kaspersky Security Network, run the kics-control --set-settings command with the --accept-ksn flag as follows: kics-control --set-app-settings UseKSN=Basic|Extended --accept-ksn.

Kaspersky Industrial CyberSecurity for Linux Nodes applies the new values of settings after it restarts.

You can use the created configuration file to import the settings into the application installed on another device.

kics-control --get-app-settings

The kics-control --get-app-settings command displays the general application settings. You can also use this command to export the general application settings to a configuration file.

Command syntax

kics-control [-T] --get-app-settings [--file <configuration file path>] [--json]

Arguments and keys

--file <configuration file path> – path to the configuration file where the application settings will be saved. If you specify the name of a file without specifying its path, the file will be created in the current directory. If a file with the specified name already exists in the specified path, it will be overwritten. If the specified directory cannot be found on the disk, the configuration file will not be created. If you do not specify the --file option, the general application settings will be displayed on the console.

--json – format of the configuration file where the application settings will be saved. If a file format is not specified, the settings will be exported to an INI file.

Example:

Export the general application settings to a file named kics_config.ini. Save the created file in the current directory:

kics-control --get-app-settings --file kics_config.ini

kics-control --set-app-settings

The kics-control --set-app-settings command sets the general application settings using the command options or imports the general application settings from the specified configuration file.

Command syntax

kics-control [-T] --set-app-settings <setting name>=<setting value> <setting name>=<setting value>

kics-control [-T] --set-app-settings --file <configuration file path> [--json]

Arguments and keys

--file <configuration file path> – full path to the configuration file to import the settings into the application.

--json – format of the configuration file to import the settings into the application. If a file format is not specified, the application attempts to import settings from an INI file. If the import fails, an error is displayed.

Examples:

Import general application settings into the application from the /home/test/kics_config.ini configuration file:

kics-control --set-app-settings --file /home/test/kics_config.ini

Set the detail level for the trace file to low:

kics-control --set-app-settings TraceLevel=NotDetailed

Add a mount point to be excluded from scans by tasks that use a file operation interceptor (File Threat Protection and Anti-Cryptor):

kics-control --set-app-settings ExcludedMountPoint.item_0000="/data"

Page top