| Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Обновлению подлежат все серверы TM (тип установки TM Node) и сервер СУБД (тип установки DB Node).
Порядок обновления следующий: Шаг 1. Обновление всех серверов TM (TM Node). Шаг 2. Обновление и перезапуск сервера СУБД (DB Node). Шаг 3. Перезапуск всех серверов TM (TM Node). ШАГ 1. ОБНОВЛЕНИЕ ВСЕХ СЕРВЕРОВ TM (TM Node) Чтобы обновить Серверы TM (TM Node), на каждом из них выполните следующие действия:
ШАГ 2. ОБНОВЛЕНИЕ СЕРВЕРА СУБД (DB Node) Чтобы обновить Сервер СУБД (DB Node), выполните следующие действия:
ШАГ 3. ПЕРЕЗАПУСК СЕРВЕРОВ TM (TM Node) Чтобы перезапустить Серверы TM (TM Node), на каждом из них выполните следующие действия:
Обновление серверов Traffic Monitor распределенного типа установки завершено. Номер версии Системы в окне О системе Консоли управления Traffic Monitor должен измениться на новый. Если в Системе есть другие серверы или подсистемы, подлежащие обновлению, воспользуйтесь инструкциями данного раздела.
|
| Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Подсказка | ||
|---|---|---|
| ||
In the console, commands 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 |
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:
|
Position the cursor on the iwks_mode fine and press F3.
The screen will display the content of iwks_mode file: "iwtm" word (indicated that the installation type is TME Node server).
| Информация | ||
|---|---|---|
| ||
If the file content is different: 1. press F3 again. 2. press F4. 3. in the window that opens, delete all characters and enter 4. press F2. 5. in the window that opens, confirm the file saving by clicking Save. 6. press F10. 7. press F3 and make sure that the file content is correct. |
mkdir -p /mnt/rhel-dvd The
/mnt/rhel-dvd directory will be created.Enter the command:
mount /dev/cdrom /mnt/rhel-dvd
| Информация | ||
|---|---|---|
| ||
There is a space between the words "/dev/cdrom" and "/mnt/rhel-dvd". |
The distribution disk which is located in section will be connected as a repository in/dev/cdrom directory./mnt/rhel-dvd
Go to directory and make sure that in contains files and folders. If the directory is empty, repeat steps 9 and 10./mnt/rhel-dvd
Go to the directory and make sure that it contains rhel-dvd.repo file (this file is required to specify the path to the update files)./etc/yum.repos.d
| Информация | ||
|---|---|---|
| ||
As, 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 which begin with "/", but is previous to the first file . |
| Информация | ||
|---|---|---|
| ||
If the rhel-dvd.repo file is missing in the directory, you need to create it. For this, enter the command:
|
Position the cursor on the rhel-dvd.repo file and press F4.
[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. |
[rhel-dvd] and [rhel-dvd-iwtm] blocks, change values of the enabled parameter from 0 to 1.Press F3 and make sure that the file content is correct, then press F3 again to close the file.
exit yum clean all 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 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 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. |
exit service iwtm stop service iwtm-php-fpm stop service nagios stop yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg(if Oracle DBMS is used)-
yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle(if PostgreSQL DBMS is used)
Downloading packages from the repository and then installing the packages will begin. This may take some time.
mc If while using the System, configuration files with .conf extension have been modified, then go to the /opt/iw/tm5/etc directory and check if it contains files with conf.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew 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: 1. Go to the 2. Position the cursor on the postgresql.conf.rpmnew file. 3. Press F3. 4. Make sure that the value of
|
/etc/nagios/iwmon directory and check if it contains files with cfg.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew configuration files")./opt/iw/tm5/etc/scripts/ directory and check if it contains files with .lua.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew configuration files").STEP 2. UPDATING DBMS SERVER (TME DB Server)
To update the DBMS server (TME DB Server), take the following steps:
- 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 root@<server_address>'s password: (or Password: - depending on the server type) line, enter a password of the root user (superuser) and press Enter.
The screen will display the service information and (in the last line) an invitation to enter the command (command line).
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:
|
Position the cursor on the iwks_mode fine and press F3.
The screen will display the content of iwks_mode file: "iwdb" word (indicates that the installation type is TME DB server).
| Информация | ||
|---|---|---|
| ||
If the file content is different: 1. press F3 again. 2. press F4. 3. in the window that opens, delete all characters and enter 4. press F2. 5. in the window that opens, confirm the file saving by clicking Save. 6. press F10. 7. press F3 and make sure that the file content is correct. |
mkdir -p /mnt/rhel-dvd The
/mnt/rhel-dvd directory will be created.Enter the command:
mount /dev/cdrom /mnt/rhel-dvd
| Информация | ||
|---|---|---|
| ||
There is a space between the words "/dev/cdrom" and "/mnt/rhel-dvd". |
/dev/cdrom section will be connected as a repository in the /mnt/rhel-dvd directory./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).
| Информация | ||
|---|---|---|
| ||
As, 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 which begin with "/", but is previous to the first file . |
| Информация | ||
|---|---|---|
| ||
If the rhel-dvd.repo file is missing in the directory, you need to create it. For this, enter the command:
|
[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. |
[rhel-dvd] and [rhel-dvd-iwtm] blocks, change values of the enabled parameter from 0 to 1.[rhel-dvd-iwtm-cfdb] block, change the value of the enabled parameter from 0 to 1. Press F3 and make sure that the file content is correct, then press F3 again to close the file.
exit yum clean all
- Enter the command to stop Oracle DBMS:
service oracle stop - Enter the command to switch to the required 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 list of patches installed in the System will be displayed on the screen. Write down all numbers which go after "Patch" (or it can be the first eight 8 digits after p. For example, for p19972569_112040_Linux-x86-64.zip patch, the number is 19972569). These numbers are needed to compare installed patches with patches which are needed for the update. - Again, enter the command to call the file manager:
mc Go to the
/mnt/rhel-dvd/infowatch/extras/OraclePatchesdirectory and make sure that patch numbers in the directory are in the list of patches installed in the System (which you have written down).
Информация title Note: If any patch from the
/mnt/rhel-dvd/infowatch/extras/OraclePatchesdirectory is not in the list of installed patches, you should install this patch.To install the patch, perform the following steps (the sample below is for a patch with the number 12345678 - p12345678_112040_Linux-x86-64.zip):
- To exit the file manager (is required to better control of command execution), enter the command:
exit - To extract the patch, enter the command:
unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/ - When the patch is unpacked, the System prompts you to press any key to continue:
- Press any key to continue.
- Enter the command to go to the required directory:
cd /tmp/12345678/ - Enter the command to install the patch:
/u01/app/oracle/product/db_1/OPatch/opatch napply -silent -skip_subset -skip_duplicateOnce the patch is installed, the screen will display the message:
- Press any key to continue.
- Enter the command to delete files which are not longer needed:
cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml
- To exit the file manager (is required to better control of command execution), enter the command:
- if Midnight Commander file manager is running, enter the command to exit it (this is required for better control of command execution):
exit - enter the command to switch to the root user:
logout - enter the command to start Oracle DBMS:
service oracle start
yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg(if Oracle DBMS is used)-
yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle(if PostgreSQL DBMS is used)
Downloading packages from the repository and then installing the packages will begin. This may take some time.
mc If while using the System, configuration files with .conf extension have been modified, then go to the /opt/iw/tm5/etc directory and check if it contains files with conf.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew 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: 1. Go to the 2. Position the cursor on the postgresql.conf.rpmnew file. 3. Press F3. 4. Make sure that the value of
|
/etc/nagios/iwmon directory and check if it contains files with cfg.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew configuration files")./opt/iw/tm5/etc/scripts/ directory and check if it contains files with .lua.rpmnew extension. If the directory contains such files, you need to properly merge them with configuration files (see "Merging .conf, .cfg and .lua configuration files with .conf.rpmnew, .cfg.rpmnew and .lua.rpmnew configuration files").-
/opt/iw/tm5/csw/oracle(if Oracle DBMS is used); -
/opt/iw/tm5/csw/postgres(if PostgreSQL DBMS is used).
\set schema_version parameter, a version to which you are updating the System is specified. If an old version is specified, repeat steps 28 - 37.exit service iwtm stop| Информация | ||
|---|---|---|
| ||
If in the System, the Crawler subsystem is installed you need to stop services of this subsystem (on Crawler server). This is 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. |
-
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)
-
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)
./update.sh The process of updating the database scheme will start. It may take some time.
web-gui package is installed on the DBMS server установлен на сервере СУБД (TME DB Server), enter the command to clear the cache:redis-cli flushall logout reboot Enter the command to check if the processes are started:
service iwtm status
The screen will display the list of processes and their status. The services must be started and the lines must end with "is running...":
STEP 3. RESTARTING TM SERVERS (TME Node Server)
To restart TM servers (TME Node Server), take the following steps on each server:
If web-gui package is installed on TM server (TME Node Server), enter the command to clear the cache:
redis-cli flushall
Enter the command to restart the server:
reboot 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 in the System, the Crawler subsystem is installed you need to start services of this subsystem (on Crawler server). This is 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 servers of the distributed type 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.
| Информация | ||
|---|---|---|
| ||
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. |
























