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:
- Using the Update predefined task.
You can manually start, stop, pause, or resume this task and configure the task run schedule. You can configure scan settings by editing the settings of this task.
- Using user tasks for updating (tasks of the Update type).
You can manually start user tasks and configure the task schedule.
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:
- Output the task settings to the configuration file:
kfl-control --get-schedule
- Edit the values of the necessary settings in the configuration file and save the changes.
- 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:
kfl-control --create-task <
task ID/name
> --type <Rollback>
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:
- To the console using the task settings output command:
kfl-control --get-settings <
task ID/name
> [--json]
- To a configuration file using the task settings output command:
kfl-control --get-settings <
task ID/name
> --file <
configuration file path
> [--json]
If you need to configure the Update task, you can:
- Modify all task settings using the configuration file. To do so:
- 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.
- Edit task settings in the generated configuration file by choosing values from the following table.
- Save the configuration file.
- Run the following command:
kfl-control --set-settings <
task ID/name
> --file <
configuration file path
> [--json]
- Output the task settings to the configuration file:
- 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 |
|
---|---|---|---|
|
Source from which the application receives updates. |
|
|
|
The application's access to Kaspersky update servers if all custom update sources are unavailable. |
|
|
|
Application update download and installation mode. |
|
|
|
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: |
|||
|
Address of the custom update source on the local area network or the Internet. |
The default value is not defined.
|
|
|
Use of the update source specified in the To run the task, at least one update source needs to be enabled. |
The default value is not defined. |