In addition to the standard start command, you can use a command to start a database update task with advanced settings. These settings enable logging of update task events to a file, or use of configuration file settings when running an update task.
To run a database update task, execute the following command:
lightagent update [--R[A]:<
path to the report file
>] [--C:<
path to the configuration file
>]
where:
R:<
path to the report file
>
– save only important events that occur during the update task in the report file. Specify the full path to the file for logging events. The application creates this file and logs events in it.RA:<
path to the report file
>
– save all events that occur during the update task in the report file. Specify the full path to the file for logging events. The application creates this file and logs events in it.C:<
path to the configuration file
>
– use the settings specified in the configuration file during the update. Specify a full path to the configuration file.Example: Start the database update task and save information about task-related events in the update.txt file:
|
The command logs the following information in the report file:
Update source
– network address of the SVM folder where application databases are stored.Completion
. The percentage of task completion.Update status
– task execution result. Possible values:Succeed
– the task has been successfully completed.Failed
– the task failed due to an internal error.