The update will be done through a console of the server being updated. A console (or a terminal) is a window of a Linux-based operating system where you can type commands in a text form - as strings. Depending on the server type, when started, the console may display general information on the server and an invitation to log in or just an invitation to log in without general information. In any case, you have to enter the user login that will be used for working the console. The console looks as follows: 
To update the System, perform the following actions: - Open the console of the server being updated:
- in the case of a physical server - the console is displayed on the screen of a monitor connected to the server;
- in the case of a virtual server - run Launch Virtual Machine Console command (see an example below).
A window with the server console will open.
- In the Login as: (or login: - depending on the server type) line, enter root and press Enter.
In the root@<server_address>'s password: (or Password: - depending on the server type) line, enter a password of the root user (superuser) and press Enter. Please, note that nothing is displayed in the line while typing. The screen will display the service information and (in the last line) an invitation to enter the command (command line). | Информация |
|---|
| The commands within the console are entered from the keyboard and must be confirmed by pressing Enter. So, if the instruction tells you to enter the command, it means that you should enter the command and then press Enter. Once the command is executed, the invitation is displayed again - it is ended with # or $ (depending on the user who logged in). Before typing the next command, make sure that an invitation is displayed at the command line. |
| Информация |
|---|
| If you connect remotely via SSH, it is recommended using the Screen utility. Thus you can avoid problems in case of lost connection with updating server. When disconnecting from the utility, all the prcocesses started are not to be interrupted and you may safely continue the System update. Important! Using Screen is highly recommended when working with DB and updating DBMS. Basic commands: screen - start the utility;Ctrl+a d - disconnect from screen (to be input within the screen window);screen -ls - display the list of screen running;screen -r - connect to screen again;screen -r name - connect to specific screen with «name»;exit - exit screen (to be input within the screen window).
|
- Enter the command to call the file manager:
mc

The screen will display a window of Midnight Commander file manager where you can view files. You can navigate in the file manager using keyboard arrows and the Enter key or with a mouse. Besides, you can enter commands at the command line which is displayed in the lower part of the screen (for entering commands, no additional actions are required). To go up one level, position the cursor in the /.. field (the first line in the file manager) and press Enter. Go to the /opt/iw/tm5 directory and make sure that it contains iwks_mode file. | Информация |
|---|
| If iwks_mode file is missing in the directory, you need to create it. For this, enter the command: touch iwks_mode
|
- Position the cursor on the iwks_mode fine and press F3.
Depending on the System edition (Enterprise or Standard) the content of iwks_mode file will be displayed on the screen:
- Press F3.
- Enter the command:
mkdir -p /mnt/rhel-dvd The /mnt/rhel-dvd directory will be created. - Make sure that a distribution disk with InfoWatch Traffic Monitor is connected to the server (see "Обновление Системы", step 2).
Enter the command:
mount /dev/cdrom /mnt/rhel-dvd | Информация |
|---|
| There is a space between 2 commands "/dev/cdrom" and "/mnt/rhel-dvd". |
The distribution disk, located in the /dev/cdrom section will be connected as a repository in the /mnt/rhel-dvd directory. - Go to the
/mnt/rhel-dvd directory and make sure that in contains files and folders. If the directory is empty, repeat steps 9 and 10. Go to the /etc/yum.repos.d directory and make sure that it contains rhel-dvd.repo file (this file is required to specify the path to the update files). | Информация |
|---|
| Taking into account, that in the file manager the elements are sorted in the alphabetic order, folders precede files (as they begin with a slash (/)). So the /yum.repos.d directory is one of the last in the last of folders list which begin with "/", but is before the first file . |

| Информация |
|---|
| If the rhel-dvd.repo file is missing in the directory, you need to create it. For this, enter the command: touch rhel-dvd.repo
|
- Position the cursor on the rhel-dvd.repo file and press F4.
- Make sure the file content includes the following text:
[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///mnt/rhel-dvd/
enabled=0
gpgcheck=0
[rhel-dvd-iwtm]
name=DVD_IWTM
baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/Linux/
enabled=0
gpgcheck=0
[rhel-dvd-iwtm-cfdb]
name=DVD_IW-CFDB
baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/cfdb/
enabled=0
gpgcheck=0
| Предупреждение |
|---|
| If the text of the file is different, replace it with the specified one. |
- In the
[rhel-dvd],[rhel-dvd-iwtm] and [rhel-dvd-iwtm-cfdb] blocks, change the values of the enabled parameter from 0 to 1. The changes in content filtration base, implemented during the operation are to be saved after the update. - Press F2.
- In the window that opens, confirm the file saving by clicking Save.
- Press F10.
Press F3 and make sure that the file content is correct, then press F3 again to close the file. - To exit the file manager (is required to better control command execution), enter the command:
exit - Enter the command to clean the package manager cache:
yum clean all - Enter commands to stop the interceptors:
service iwtm stop icap service iwtm stop smtpd service iwtm stop expressd service iwtm stop sniffer service iwtm stop xapi_xapi service iwtm stop xapi_puppy - Enter the command to call the file manager again:
mc Wait until all events which are in the queue for processing are processed. Events in the queue are located in the following directories:
/opt/iw/tm5/queue/analysis/.db/
/opt/iw/tm5/queue/analysis/.in/
/opt/iw/tm5/queue/analysis/.out/
/opt/iw/tm5/queue/db/.db/
/opt/iw/tm5/queue/db/.in/
/opt/iw/tm5/queue/db/.out/
/opt/iw/tm5/queue/smtp/.db/
/opt/iw/tm5/queue/smtp/.in/
/opt/iw/tm5/queue/smtp/.out/ When all the events are processed, these directories will be empty. | Предупреждение |
|---|
| To continue the update, make sure that all specified directories are empty. Otherwise, we cannot guarantee that the System will be updated correctly and will operate properly after the update. If for some reason, you cannot wait until the processing is complete, you can delete events from the queue; such events will be completely removed from the System. To delete the event, go to the required directory in the file manager, position the cursor on the event you want to delete and press F8. Then, confirm the deletion by clicking Yes in the confirmation window that opens. |
- To exit the file manager (is required to better control command execution), enter the command:
exit - To stop services of Traffic Monitor server, enter the command:
service iwtm stop - If Oracle DBMS is used in the System, do the following actions:
- Enter the command to stop DBMS Oracle:
service oracle stop - Enter the command to switch to the desired user:
su - oracle - Enter the command to get the list of patches installed in the System:
/u01/app/oracle/product/db_1/OPatch/opatch lsinventory | grep "Patch" | grep "applied" The screen will display the list of patches installed in the System. Write down or remember all numbers specified after the word "Patch" (the patch number can also be the first eight digits after the letter "p". For example, for p19972569_112040_Linux-x86-64.zip the patch number is 19972569). There numbers are required to compare installed patches and patches that are needed for the update. - Enter the command to call the file manager again:
mc Go to the /mnt/rhel-dvd/infowatch/extras/OraclePatches directory and make sure that patch numbers in the directory are in the list of patch numbers installed in the System (which you have written down or remembered).
 | Информация |
|---|
| If any patch from /mnt/rhel-dvd/infowatch/extras/OraclePatches directory is not in the list of installed patches, you need to install this patch. Before installing the patch, OPatch utility is required to be updated. The following actions are to be taken to do that: - If Midnight Commander file manager is running, to exit it (is required for better control command execution) enter the command:
exit - To make a backup copy, enter the command:
mv /u01/app/oracle/product/db_1/OPatch /u01/app/oracle/product/db_1/OPatch_backup - To extract the archive with a new version, enter the command:
unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p6880880_112000_Linux-x86-64.zip -d /u01/app/oracle/product/db_1 - To grant the oracle user rights for operating the directory and files, enter the command:
chown oracle:oinstall -R /u01/app/oracle/product/db_1/OPatch
To install the patch, the following actions are to be taken (below you can see the example of patch number 12345678 - p12345678_112040_Linux-x86-64.zip): - If Midnight Commander file manager is running, to exit it (is required for better control command execution) enter the command:
exit - Enter the command to extract the patch:
unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/ - To go to the required directory, enter the command:
cd /tmp/12345678/ - In accordance with patch type, enter the command to install the patch :
/u01/app/oracle/product/db_1/OPatch/opatch napply . -silent -ocmrf /mnt/rhel-dvd/infowatch/extras/OraclePatches/ocm0.rsp (in case of composite patch);/u01/app/oracle/product/db_1/OPatch/opatch apply -silent -ocmrf /mnt/rhel-dvd/infowatch/extras/OraclePatches/ocm0.rsp (in case of a single patch).
When the patch is installed, the screen will display the message: Press any key to continue. Then, the changed SQL files should be downloaded into DB. - Enter the command to switch to the
root user again:
exit - Enter the command to start the Oracle DBMS:
service oracle start - Enter the command to switch to the required user:
su - oracle - In each separate base within the Oracle home, where the patch is installed it is required switching using SQL*Plus. Login as SYSDBA and run the script
catbundle.sql, to do this the following command are to be entered:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
CONNECT / AS SYSDBA
@catbundle.sql cpu apply
QUIT The catbundle.sql script running is displayed within the dba_registry_history as package set updates (PSU). - To delete the files that are no more needed, enter the command:
cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml
Details on the installation can be found within the README file, located in a specific directory named after each patch. |
- If Midnight Commander file manager is running, exit it (required for better command execution control) with the command:
exit - to switch back to the root user, enter the command:
exit - to start Oracle DBMS, enter the command:
service oracle start
- Depending on the DBMS used, enter the command to start the packages update process:
Before loading the files required for installation, the screen will display a request as follows: . To continue, type Y and press Enter. Downloading packages from the repository and then installing the packages will begin. This may take some time.  Enter the command within the file manager to find and display the list of files with .rpmnew extension:
find / -name "*rpmnew*" -print If the files mentioned have been found, they should be correctly merged with configuration files ( see "Merging configuration files"). | Предупреждение |
|---|
| If PostgreSQL DBMS is used in the System, it is necessary to take the following steps when updating Traffic Monitor version 6.0 or 6.1 to 6.5 and higher: | Multiexcerpt include |
|---|
| MultiExcerptName | ENG |
|---|
| PageWithExcerpt | Объединение конфигурационных файлов |
|---|
|
|
Enter the command to call the file manager: mc
- Go to
/opt/iw/tm5/etc/scripts/ directory and make sure the file iwssid.lua.upgrade is in place. The file iwssid.lua.upgrade is not being used by the System, it is an information source to restore the System operation in case of complete customization. - Also
/opt/iw/tm5/etc/scripts/ directory should contain the file iwssid.lua that is recommended to remain with no changes implemented in case any term from the following is complied:
- System's update is held as per version 6.9;
- iwssid.lua file has not been edited before the update.
Otherwise, this should be correctly merged with iwssid.lua.rpmnew file ( see "Merging configuration files"). - Depending on DBMS used go to the directory:
-
/opt/iw/tm5/csw/oracle (if Oracle DBMS is used); -
/opt/iw/tm5/csw/postgres (if PostgreSQL DBMS is used).
- Select the database.conf file.
- Press F3.
- Make sure that for the
\set schema_version parameter, a version to which you are updating the System is specified. If an old version is specified, repeat steps 27 - 36. - Press F3.
- To exit the file manager (is required to better control command execution), enter the command:
exit To stop services, enter the commands one by one: service iwtm stop service iwtm-php-fpm stop service nagios stop | Информация |
|---|
| If the Crawler subsystem is a part of System, it is required to stop the services of this subsystem (on Crawler server). This is to be done on the server, where the subsystem is installed with Windows standard tools: Start - Control Panel - Administrative Tools - Services, then select the service in the list and click Stop service. |
- If PostgreSQL DBMS is used in the System, perform Updating PostgreSQL DBMS.
- Depending on DBMS used, enter the command to switch to the required user:
-
su - oracle - to switch to the oracle user (if Oracle DBMS is used in the System) -
su - postgres - to switch to the postgres user (if PostgreSQL DBMS is used in the System)
- Depending on DBMS used, enter the command to go to the required directory:
-
cd /opt/iw/tm5/csw/oracle - (if Oracle DBMS is used in the System) -
cd /opt/iw/tm5/csw/postgres - (if PostgreSQL DBMS is used in the System)
- Enter the command to start the database update script:
./update.sh The process of updating the database scheme will start. It may take some time. When the update is complete, the screen will display an information message and a command prompt:
 - Enter the command to clear the cache:
redis-cli flushall - To switch back to the root user, enter the command:
exit - Enter the command to call the file manager:
mc - Go to
/etc/yum.repos.d, place cursor on the file rhel-dvd.repo and press F4. - In the
[rhel-dvd],[rhel-dvd-iwtm] and [rhel-dvd-iwtm-cfdb] blocks, change values of the enabled parameter from 1 to 0. - Press F2.
- Click Save in the opened window to confirm saving the file.
- Press F10.
- Press F3 and make sure the file is correct, then press F3 again to close the file.
- To exit the file manager (required for beеter commands execution)б enter the command:
exit - Enter the command to restart the server:
reboot - Wait until the server is started and repeat steps 2 and 3 of this instruction to log in the console.
Enter the command to check if the processes are started: service iwtm status The screen will display the list of processes and their status. Generally, iw_qmover_client and iw_qmover_server services are stopped and all other services are started. For iw_qmover_client and iw_qmover_server services, the lines should end with "is stopped (disabled)..." and for all other services, the lines should end with "is running...": | Информация |
|---|
| If the Crawler subsystem is a part of System, it is required to start the services of this subsystem (on Crawler server). This is to be done on the server where the subsystem is installed with Windows standard tools: Start - Control Panel - Administrative Tools - Services , then select the service in the list and click Start service. |
Updating Traffic Monitor All-in-one server is complete. Version of the System in the About window of the Management Console will be changed. If the System includes other servers or subsystems to be updated, follow instructions in this section. | Предупреждение |
|---|
| If automatic synchronizations with LDAP servers are configured in the System, then after update, perform synchronizations manually to guarantee load of entities (see "Infowatch Traffic Monitor. User Guide", "Running Synchronization with Server Manually"). |
| Информация |
|---|
| For the Management Console to be displayed correctly, delete the cache in your browser before you start working in the Management Console. This is done with browser standard tools. |
|