Configuring container monitoring in the command line

In the command line, you can enable or disable real-time scanning of namespaces and containers by using the NamespaceMonitoring=Yes/No setting from the general application settings.

You can edit the value for the setting NamespaceMonitoring using the configuration file that contains all general application settings, or using command line keys.

When scanning namespaces and containers in real time, the general Container Scan settings are used. You can view and edit these settings using special administration commands for Kaspersky Endpoint Security:

To output the current values of general Container Scan settings to the console, execute the following command:

kesl-control --get-container-settings [--json]

where --json is specified to output the settings in JSON format. If the --json key is not specified, the settings will be imported in the INI format.

To output the current values of general Container Scan settings to a file, execute the following command:

kesl-control --get-container-settings --file <path to configuration file> [--json]

where:

To edit the values of the general Container Scan settings using a configuration file:

  1. Output the general Container Scan settings to the configuration file, as described above.
  2. Edit the values of the necessary parameters in the file and save the changes.
  3. Execute the command:

    kesl-control --set-container-settings --file <path to configuration file> [--json]

    where:

    • --file <path to configuration file> is the full path to the configuration file with the General Container Scan settings.
    • --json: specify this key if you are importing settings from a configuration file in JSON format. If the --json key is not specified, the application attempts to import from an INI file. If the import fails, an error is displayed.

All the values of the general Container Scan settings defined in the file will be imported into the application.

To edit values of general Container Scan settings using command line keys, execute the following command:

kesl-control --set-container-settings <setting name>=<setting value> [<setting name>=<setting value>]

where <setting name>=<setting value> is the name and value of one of the general Container Scan settings.

The values of the specified general Container Scan settings will be changed.

Page top