With default configuration, Kaspersky Scan Engine uses the anti-virus database from the ./bin/bases
directory. You can update the anti-virus database by sending a signal or an HTTP request to Kaspersky Scan Engine.
When the anti-virus database is updated, the encrypted user agent string of Kaspersky Scan Engine is transferred to Kaspersky Lab. For the list of transferred data, see section "Data transferred to Kaspersky Lab during an update".
Updating the database on demand
If you want to update the database manually, use updating on demand.
To update the database on demand in Linux by using signals:
kavhttpd
service, specify the update setting in kavhttpd.xml.kavhttpd
service.SIGUSR2
signal to the kavhttpd
service.If the client and Kaspersky Scan Engine are installed and running on the same computer, you can send an HTTP request to the /api/v3.0/update/start
address to update the database. Note that if you send this request from a different computer, Kaspersky Scan Engine will throw a 405 Method Not Allowed
error. If the database update has been successfully initiated, the HTTP response will contain the following JSON object:
{ "status": "update started" } |
To learn how to track the database update status, see subsection "Getting the database update status" below.
To update the database on demand in Linux by using the sample HTTP client,
Call the sample HTTP client with the -d option:
kavhttp_client.exe -j -d
To update the database on demand in Windows,
Call the sample HTTP client with the -d
option:
kavhttp_client.exe -j -d
For details on scheduling automatic database updates, see section "Configuring updating in HTTP mode", subsection "Scheduling automatic database updates".
Getting the database update status
If you want to obtain the database update status, send a GET request to the /api/v3.0/update/status
address.
You can only send this request if the client and Kaspersky Scan Engine are installed and running on the same computer.
When Kaspersky Scan Engine receives the request, it returns a response in the following format:
{ "status": "%UPDATE_STATUS%", "progress": "%UPDATE_PROGRESS%", "last_update_result": "%UPDATE_RESULT%", "last_update_time": "%UPDATE_TIME%", } |
where:
status
is the current status of the database update. It can have one of the following values:"in progress"
"not started"
progress
is the progress, in percent, of the database update.This element is only included in the response if the database update is being performed at present (that is if the status
element has the value of "in progress"
).
last_update_result
is the result of the last database update. It can have one of the following values:"success"
"all components are up to date"
"invalid update sources"
"not all components are updated"
"download error"
"error while updating"
"error %ERROR_CODE% occurred"
, where %ERROR_CODE%
is the error code received from Kaspersky Scan EngineThis element is only included in the response if the database update is not in progress at present (that is if the status
element has the value of "not started"
).
last_update_time
is the date and the time of the last database update in the following format: %hh%:%mm%:%ss% %DD%.%MM%.%YYYY%
.This element is only included in the response if the database update is not in progress at present (that is if the status
element has the value of "not started"
).