In addition to the standard start command, you can use a command to start a database update task with additional 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 report file>] [--C:<path to configuration file>]
where:
R:<path to report file> – log in the report file only important events occurring during the update task. Specify the full path to the file for logging events. The application creates this file and logs events in it.
RA:<path to report file> – log in the report file all events occurring during the update task. Specify the full path to the file for logging events. The application creates this file and logs events in it.
C:<path to 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:
lightagent update --RA:/usr/local/update.txt
The command logs the following information in the report file:
Update source – network address of the SVM folder where application databases are stored.
Completion – percentage of task completion.
Update status – result of task execution. Possible values:
Succeed. The task has been successfully completed.