Under certain conditions, Kaspersky experts may prepare updated application files with the applied patches. Patches are intended for adding or fixing the functionality of the application if such changes cannot be applied by updating the databases and application modules.
The updated application files with the applied patch (hereinafter also referred to as "updated application files") are supplied in the form of an archive similar to the archive included in the application distribution kit.
If the application components are not yet installed on the computers, you can use the archive with the updated application files to install the application, the same way as the archive from the distribution kit. To do so, when preparing for the application installation, unpack the archive with the updated application files, but not the archive from the distribution kit. You can perform all other actions to install the components in the same way as when using the archive from the distribution kit.
If the components of the current application version are already installed on the computers, to install the updated application files with the patch, use the patch installation script kics4net-install-patch.sh. The kics4net-install-patch.sh script allows you to replace the installed application components of the current version with application components of the updated version and to migrate the data accumulated by the current application version. If an error occurs when replacing the installed components, the script rolls back the installation of the updated application files and returns the application to the state it had when the script was run.
When replacing the installed application components of the current version with the application components of the updated version, the kics4net-install-patch.sh script allows you to transfer the following accumulated data:
The kics4net-install-patch.sh script is included in the application distribution kit and is in the archive with the updated application files.
You can use the kics4net-install-patch.sh script to install the updated application files for the current version or any version starting with 4.1, provided that the updated application files are compatible with the installed operating system and Kaspersky Industrial CyberSecurity for Networks versions.
The kics4net-install-patch.sh script installs the updated application files locally on the computer where the script is run. Therefore, to update all application components (Server and sensors), run the kics4net-install-patch.sh script sequentially on each computer with the installed application component. The components can be updated in any order: you can first update the application files on the Server computer and then on the sensor computers, or vice versa.
To install the updated application files on the computer where Kaspersky Industrial CyberSecurity for Networks Server or sensor is installed:
If the directory with the old unpacked files already exists on the computer (for example, the directory was not deleted after the local installation of the component), you can use this directory for further actions. If there is no such directory, perform the following actions to prepare it:
tar -zxvf <archive file name>
The unpacked directories and files appear in a subdirectory whose name matches the name of the archive file.
In the description of the further actions, this prepared directory is referred to as a directory with old files.
To prepare the directory:
tar -zxvf <archive file name>
The unpacked directories and files appear in a subdirectory whose name matches the name of the archive file.
In the description of the further actions, this prepared directory is referred to as a directory with new files.
sudo bash kics4net-install-patch.sh -o <path to the directory with the old files>/linux-centos -n <path to the directory with the new files>/linux-centos -b <path to the directory with the backup copy> --backup-traffic
sudo bash kics4net-install-patch.sh -s -o <path to the directory with the old files>/linux-centos -n <path to the directory with the new files>/linux-centos -b <path to the directory with the backup copy> --backup-traffic
where:
-o is a parameter specifying the full path to the directory that contains the scripts and package files for installation, verification, and removal of the application components in the directory with the old files (mandatory parameter).- n is a parameter specifying the full path to the directory that contains the scripts and package files for installation, verification, and removal of the application components in the directory with the new files (mandatory parameter).-b is a parameter specifying the full path to the directory for creating the backup copy (by default, the script creates a backup copy in a temporary directory and automatically deletes the created files if the installation of the updated application files is successful or if the installation is rolled back due to an error during the script operation).It is recommended to use this parameter to save the backup copy in the correct directory regardless of the kics4net-install-patch.sh script execution results. If a large amount of data is accumulated in the application, use the -b parameter to specify a mounted directory on a different hard drive and avoid the overflowing of the system (root) partition.
--backup-traffic is a parameter for adding the traffic dump files to the backup and further restoring these files after the updated application files are installed. By default, the traffic dump files are not copied to the backup directory; these files remain in their original location and are available if the installation is successful. This parameter allows you to automatically restore the traffic dump files in case of the rollback of the updated application files installation caused by an error in the kics4net-install-patch.sh script execution.It is recommended to use this parameter if you want to save the traffic dump files and there is a risk of errors during the installation of the updated application files. Typically, the directory where the application stores the traffic dump files requires a large amount of disk space. When the --backup-traffic parameter is used, the kics4net-install-patch.sh script copies these files to the backup directory, which may require significant additional disk space. Also, the script running time may significantly increase.
-s is a parameter for enabling installation of the updated sensor files; it is applied when the kics4net-install-patch.sh script is run on the sensor computer.Example:
|
The script starts installing the updated application files. Wait for the kics4net-install-patch.sh script to finish.
To view the application version on the Server and start working with the application after installing the updated files:
If you do not agree to the terms of the End User License Agreement and/or the Privacy Policy, close the web interface page and remove the installed application components from your computers.