Kaspersky Standard | Plus | Premium

How to update databases and application modules using the command line

On the command line, you can update databases and application modules in the following ways:

The task starts with default settings listed in Appendix 3. You can stop or start the task at any time. You can also modify the settings of the task before starting it.

You must modify the settings of a task before starting the task.

ID of the Update predefined task: 6. Name of the Update predefined task: Update. If you have an update user task, you must specify its ID or name.

To configure the task schedule using a configuration file:

  1. Output the task settings to the configuration file: kfl-control --get-schedule
  2. Edit the values of the necessary settings in the configuration file and save the changes.
  3. Execute the command:

    kfl-control --set-schedule <task ID/name> --file <configuration file path> [--json]

All values of the settings for the task run schedule defined in the file will be imported into the application.

To modify individual task schedule settings on the command line:

kfl-control --set-schedule <task ID/name> <setting name>=<setting value> [<setting name>=<setting value>]

The values of the specified settings for the task run schedule are modified.

To stop the Update task on the command line and enable the output of current events related to this task:

kfl-control --stop-task <task ID/name> -W

To start the Update predefined task, enable the output of current events related to this task, and display the progress of the task:

kfl-control --start-task 7 [-W] [--progress]

To create and start the Update user task, enable the output of current events related to this task, and display the progress of the task, run the following commands in sequence:

  1. kfl-control --create-task <task ID/name> --type <Rollback>
  2. kfl-control --start-task <task ID/name> [-W] [--progress]

The Update task starts with default settings listed in Appendix 3.

You can display the current values of the task settings in one of the following ways:

If you need to configure the Update task, you can:

  • Modify all task settings using the configuration file. To do so:
    1. Output the task settings to the configuration file: kfl-control --get-settings <task ID/name> [--json]

      A configuration file with the current task settings is generated.

    2. Edit task settings in the generated configuration file by choosing values from the following table.
    3. Save the configuration file.
    4. Run the following command: kfl-control --set-settings <task ID/name> --file <configuration file path> [--json]
  • Modify individual task settings: kfl-control --set-settings <task ID/name> <setting name>=<setting value> [<setting name>=<setting value>]
  • Restore default task settings: kfl-control --set-settings <task ID/name> --set-to-default

For detailed instructions on how to modify the settings of application tasks, see the How to manage task settings on the command line section.

The following table describes all the settings of the Update task and their values.

Update task settings

Setting

Description

Values

SourceType

Source from which the application receives updates.

KLServers (default value) — The application receives updates from one of the Kaspersky update servers. Updates are downloaded via HTTPS protocol.

Custom — The application downloads updates from a custom source specified in the [CustomSources.item_#] section. You can specify directories on FTP, HTTP, and HTTPS servers or directories on any device mounted on the protected client device, including directories on remote devices mounted via the Samba or NFS protocols.

UseKLServersWhenUnavailable

The application's access to Kaspersky update servers if all custom update sources are unavailable.

Yes (default value) — The application will connect to Kaspersky update servers if all custom update sources are unavailable.

No — The application will not connect to Kaspersky update servers if all custom update sources are unavailable.

ApplicationUpdateMode

Application update download and installation mode.

Disabled — Do not download or install application updates.

DownloadOnly (default value) — Download application updates, but do not install them.

DownloadAndInstall — Automatically download and install application updates. After updates are installed, the application will restart automatically.

ConnectionTimeout

Response timeout (in seconds) of an update source while attempting to connect to it. If an update source does not respond within the specified time interval, the application contacts the next update source in the list.

You can use only integers within the range from 0 to 120.

Default value: 10.

The [CustomSources.item_#] section contains the following settings:

URL

Address of the custom update source on the local area network or the Internet.

The default value is not defined.

Examples:

URL=http://example.com/bases/ – address of the HTTP server with the directory that contains updates.

URL=/home/bases/ – directory on the protected computer that contains application databases.

 

Enabled

Use of the update source specified in the URL setting.

To run the task, at least one update source needs to be enabled.

Yes – the application uses the update source.

No – The app doesn't use the update source.

The default value is not defined.