Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMIG and version 6.10
Sv translation
languageru

Обновление будет вестись в консоли обновляемого сервера. Консоль (или терминал) - это окно операционной системы семейства Linux, команды в котором вводятся в текстовом виде - строкой. В зависимости от разновидности сервера, в начале работы консоль может выводить общие сведения о сервере и приглашение войти или просто приглашение войти. В любом случае в самом начале потребуется ввести логин пользователя, от имени которого будет выполнен вход.

Консоль выглядит так:

Обновлению подлежат все серверы TM (тип установки TME Node Server) и сервер СУБД (тип установки TME DB Server).

Предупреждение
titleВажно!

Каждый сервер должен иметь уникальный корректный FQDN.

Информация
titleПримечание:

Если вы используете удаленное подключение по протоколу SSH, рекомендуется использовать утилиту Screen. Это позволит избежать проблем в случае разрыва соединения с обновляемым сервером. При отключении от утилиты запущенные в ней процессы не прервутся, что позволит безопасно продолжить обновление Системы.
Важно! Использование Screen особенно рекомендуется при работе с БД и обновлении СУБД.

Основные команды:

  • screen - запустить утилиту;
  • Ctrl+a d - отключиться от screen (вводится в окне screen);
  • screen -ls - вывести список запущенных screen;
  • screen -r - повторно подключиться к screen;
  • screen -r name - подключиться к определенному screen с именем «name»;
  • exit - выйти из screen (вводится в окне screen).


Порядок обновления следующий:

Шаг 1. Обновление всех серверов TM (TME Node Server).
Шаг 2. Обновление и перезапуск сервера СУБД (TME DB Server)
Шаг 3. Проверка работоспособности внутренних сервисов Системы
Шаг 4. Завершение обновления на сервере СУБД (TME DB Server)
Шаг 35. Перезапуск всех серверов TM (TME Node Server).

Якорь
Шаг 1
Шаг 1
ШАГ 1. ОБНОВЛЕНИЕ ВСЕХ СЕРВЕРОВ TM (TME Node Server)

Чтобы обновить Серверы TM (TME Node Server), на каждом из них выполните следующие действия:

  1. Откройте консоль обновляемого сервера:
    • в случае физического сервера - консоль отображается на экране монитора, подключенного к серверу;
    • в случае виртуального сервера - выполните команду Launch Virtual Machine Console (см. пример ниже).

      Откроется окно с консолью сервера.
  2. В строке Login as: (или login: - в зависимости от разновидности сервера) введите root и нажмите Enter.


  3. В строке root@<адрес_сервера>'s password: (или Password: - в зависимости от разновидности сервера) введите пароль пользователя root (суперпользователя) и нажмите Enter.
    Обратите внимание, что при вводе символов в строке ничего не будет отображаться.

    На экране отобразится служебная информация и - последней строкой - приглашение ввести команду (командная строка).

    Информация
    titleПодсказка:

    Команды в консоли вводятся с помощью клавиатуры и обязательно подтверждаются нажатием клавиши Enter, поэтому в данной инструкции под "введите команду command" подразумевается "введите команду command и нажмите Enter". После выполнения команды снова отображается приглашение - оно заканчивается знаком # или $ (в зависимости от того, от имени какого пользователя выполнен вход). Прежде чем вводить следующую команду, нужно убедиться, что в командной строке отображается приглашение.

  4. Введите команду для вызова файлового менеджера:

    mc

    На экране отобразится окно файлового менеджера Midnight Commander, в котором удобно просматривать файлы.
    Навигация в файловом менеджере осуществляется при помощи стрелок клавиатуры и клавиши Enter или при помощи мыши. При этом без дополнительных действий вы можете вводить команды в командной строке (она видна в нижней части экрана).

    Для перехода на уровень выше установите курсор в поле /.. (первая строка в файловом менеджере) и нажмите Enter.

  5. Перейдите в директорию /opt/iw/tm5 и убедитесь в наличии там файла iwks_mode.

     

    Информация
    titleПримечание:

    Если файл iwks_mode отсутствует в директории, то его необходимо создать. Для этого введите команду:

    touch iwks_mode

  6. Установите курсор на файл iwks_mode и нажмите клавишу F3.
    На экране должно отобразится отобразиться содержимое файла iwks_mode: слово "iwtm" (оно указывает на тип установки - TME Node server).

    Информация
    titleПримечание:

    Если файл имеет другое содержимое:

    1. повторно  Повторно нажмите F3.

    2. нажмите Нажмите F4.

    3. в В открывшемся окне удалите все символы и введите: iwtm

    4. нажмите Нажмите F2.

    5. в В открывшемся окне подтвердите сохранение файла, нажав Save.

    6. нажмите Нажмите F10.

    7. нажмите Нажмите F3 и убедитесь в корректности содержимого файла.

  7. Нажмите F3.
  8. Введите команду:
    mkdir -p /mnt/rhel-dvd
    Будет создана директория /mnt/rhel-dvd
  9. Подключите диск с текущей версией дистрибутива InfoWatch Traffic Monitor к серверу (см. статью "Обновление Системы", действие 2).
  10. Введите команду:
    mount /dev/cdrom /mnt/rhel-dvd

    Информация
    titleПримечание:

    Между частями команды "/dev/cdrom" и "/mnt/rhel-dvd" есть пробел.

    Дистрибутивный диск, находящийся в разделе /dev/cdrom, будет подключен в качестве репозитория в директории /mnt/rhel-dvd.

  11. Перейдите в директорию /mnt/rhel-dvd и убедитесь в наличии там файлов и папок. Если директория пуста, повторите действия 9 и 10.

  12. Перейдите в директорию /etc/yum.repos.d и убедитесь в наличии там файла rhel-dvd.repo (этот файл потребуется для указания пути к файлам обновления).

    Информация
    titleПримечание:

    Ввиду того, что в файловом менеджере алфавитная сортировка, папки стоят раньше файлов (поскольку имеют в начале префикс - дробную черту (/ , слеш)). Поэтому директория /yum.repos.d стоит одной из последних в списке папок, начинающихся с символа дробной черты (/), но до первого файла.

     

    Image Removed

    Если файл rhel-dvd.repo отсутствует в директории, то его необходимо создать.
    Информация
    titleПримечание:
    Информация
    titleПримечание:

    Если вы обновляетесь с версии Traffic Monitor 6.10.x, после этого перейдите к действию 9.

    Для подготовки Системы к обновлению выполните действия:

    1. На Сервере СУБД (TME DB Server):

      1. Выполните действия 1-7 Шага 2 (см. ниже).

      2. Перейдите в директорию /opt/iw/tm5/etc, установите курсор на файл  serman.conf и нажмите F3.

      3. В блоке DefaultInterface найдите IP-адрес.
    2. На всех Серверах TM (TME Node Server):

      1. Перейдите в директорию /opt/iw/tm5/etc, установите курсор на файл serman_client.conf и нажмите F4.

      2. Найдите блок SermanHost.
        Сравните его значение с IP-адресом, который указан в файле serman.conf на Сервере СУБД (TME DB Server).
      3. Если они не совпадают, замените значение в блоке SermanHost на Серверах TM (TME Node Server) на IP-адрес, который указан в блоке DefaultInterface файла serman.conf на Сервере СУБД (TME DB Server).
      4. Нажмите F2.
      5. В открывшемся окне подтвердите сохранение файла, нажав Save.
      6. Нажмите F10.
    3. На Сервере СУБД (TME DB Server) для закрытия просмотра serman.conf нажмите F3.
  13. Якорь
    9
    9
    Перейдите в директорию /etc/yum.repos.d и убедитесь в наличии там файла rhel-dvd.repo (этот файл потребуется для указания пути к файлам обновления).

    Информация
    titleПримечание:

    Ввиду того, что в файловом менеджере применена алфавитная сортировка, папки располагаются перед файлами (поскольку имеют в начале префикс - дробную черту (/ , слеш)). Поэтому директория /yum.repos.d стоит одной из последних в списке папок, начинающихся с символа дробной черты (/), но до первого файла.

     

    Image Added

    Информация
    titleПримечание:

    Если файл rhel-dvd.repo отсутствует в директории, то его необходимо создать. Для этого введите команду:

    touch rhel-dvd.repo

  14. Установите курсор на файл rhel-dvd.repo и нажмите F4.
  15. Убедитесь, что файл имеет следующее содержимое:

    [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

    Предупреждение
    titleВажно!

    Если текст файла отличается, замените его на указанный.

  16. В параметрах enabled блоков [rhel-dvd] и [rhel-dvd-iwtm] замените значения с 0 на 1.
  17. Нажмите F2.
  18. В открывшемся окне подтвердите сохранение файла, нажав Save.
  19. Нажмите F10.
  20. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

  21. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  22. Введите команду для очищения кеша менеджера пакетов:
    yum clean all
  23. Выполните команды для остановки перехватчиков:
    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

    Информация
    titleПримечание:

    Если в Системе используются два и более серверов перехвата, то к следующему действию следует переходить после выполнения указанных действий на каждом из этих серверов.

  24. Снова введите команду для вызова файлового менеджера:
    mc

  25. Дождитесь, пока обработаются все события, стоящие в очереди на обработку. События, находящиеся в очереди, хранятся в следующих директориях:
    /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/

    По завершении обработки событий данные директории должны стать пустыми.

    Предупреждение
    titleВажно!

    До продолжения обновления настоятельно рекомендуется убедиться в том, что все указанные выше директории пусты. В противном случае нельзя гарантировать успешное обновление и дальнейшую работоспособность Системы.

    Если по какой-либо причине дождаться завершения обработки невозможно, вы можете удалить события из очереди, при этом такие события будут полностью удалены из Системы.

    Чтобы удалить событие, перейдите в нужную директорию в файловом менеджере, установите курсор на планируемом к удалению событии и нажмите F8, затем подтвердите удаление, выбрав в открывшемся окне Yes.

  26. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  27. Введите команду:


    yum install iwtm-qatools
    Перед загрузкой нужных для установки пакетов будет выведен запрос вида

    ===============================================================================================================================
    Package Arch Version Repository Size
    =====================================================
    mkdir -p /mnt/rhel-dvd 
    Будет создана директория /mnt/rhel-dvd

    Информация
    titleПримечание:
    Если вы обновляетесь с версии Traffic Monitor 6.10.x, после этого перейдите к действию 29.
  28. Подключите диск с текущей версией дистрибутива InfoWatch Traffic Monitor к серверу (см. статью "Обновление Системы", действие 2).
  29. Введите команду:
    mount /dev/cdrom /mnt/rhel-dvd

    Информация
    titleПримечание:

    Между частями команды "/dev/cdrom" и "/mnt/rhel-dvd" есть пробел.

    Дистрибутивный диск, находящийся в разделе /dev/cdrom, будет подключен в качестве репозитория в директории /mnt/rhel-dvd.

  30. Перейдите в директорию /mnt/rhel-dvd и убедитесь в наличии там файлов и папок. Если директория пуста, повторите действия 24 и 25.

  31. Введите команду:
    yum install iwtm-qatools

    Перед загрузкой нужных для установки пакетов будет выведен запрос вида

    ===========================================================================
    Installing:
    iwtm-qatools x86_64 6.7.21.419-release TM-distr 3.9 M
    Installing for dependencies:
    iwtm-adlibitum-tool x86_64 6.7.21.419-release TM-distr 121 k
    iwtm-liro2json x86_64 6.7.21.419-release TM-distr 405 k

     

    Transaction Summary
    ====================================================
    Package Arch Version Repository Size
    ===============================================================================================================================
    Install 3 Package(s)

     Total download size: 4.4 M
    Installed size: 22 M
    Is this ok [y/N]:
    Для продолжения наберите Y на клавиатуре и нажмите Enter.
  32. После завершения установки пакета введите команду:
    umount /mnt/rhel-dvd
  33. Подключите диск с новой версией дистрибутива InfoWatch Traffic Monitor к серверу (см. статью "Обновление Системы", действие 2).
  34. Введите команду:
    mount /dev/cdrom /mnt/rhel-dvd

  35. Введите команду для очищения кеша менеджера пакетов:
    yum clean all

  36. Необходимо получить файл (имя файла - sd_nodes.out), содержащий IP-адреса нод для обновления. Для этого запустите скрипт, выполнив команду:

    Если 2 ноды, то:

    bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh

    Если нод больше, чем 2: 

    bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh --tm_nodes_count 

    Примерный вывод в консоль будет таким:

    Will write to log file:
    /var/log/infowatch/generate_serman_services_nodes_for_consul.log

    WARNING: bad or empty input tm_nodes_count=, will use 2
    OK: TM nodes count is 2
    iwtm-serman-client-conf-6.7.21.419-release.x86_64
    package iwtm-consul is not installed
    OK: serman_prober reported 2 nodes
    ==> /opt/iw/tm5/tmp/sd_nodes.out <==
    10.20.30.40 server
    10.20.30.41 client

    OK: Please copy the file to all nodes before upgrading TM on them, e.g.:
    scp /opt/iw/tm5/tmp/sd_nodes.out 10.20.30.40:/opt/iw/tm5/tmp/sd_nodes.out
     

    Скопируйте файл sd_nodes.out на указанные ноды.
    Выполните следующую команду:

    scp

    Installing:
    iwtm-qatools x86_64 6.7.21.419-release TM-distr 3.9 M
    Installing for dependencies:
    iwtm-adlibitum-tool x86_64 6.7.21.419-release TM-distr 121 k
    iwtm-liro2json x86_64 6.7.21.419-release TM-distr 405 k

     

    Transaction Summary
    ===============================================================================================================================
    Install 3 Package(s)

     

    Total download size: 4.4 M
    Installed size: 22 M
    Is this ok [y/N]:

    Для продолжения наберите Y на клавиатуре и нажмите Enter.

  37. После завершения установки пакета введите команду:
    umount /mnt/rhel-dvd
  38. Якорь
    29
    29
    Подключите диск с новой версией дистрибутива InfoWatch Traffic Monitor к серверу (см. статью "Обновление Системы", действие 2).
  39. Введите команду:
    mount /dev/cdrom /mnt/rhel-dvd

  40. Введите команду для очищения кеша менеджера пакетов:
    yum clean all

    Информация
    titleПримечание:
    Если вы обновляетесь с версии Traffic Monitor 6.10.x, после этого перейдите к действию 34.
  41. Необходимо получить файл (имя файла - sd_nodes.out), содержащий IP-адреса нод для обновления. Для этого запустите скрипт, выполнив команду:

    Если 2 ноды (сервер TM и сервер СУБД), то:

    bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh

    Если нод больше, чем 2: 

    bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh --tm_nodes_count=<количество_нод> 

    где <количество_нод> - количество всех серверов, включая сервер СУБД.

    В нашем примере команда будет следующей:

    bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh

    Примерный вывод в консоль будет следующий:

    Will write to log file:
    /var/log/infowatch/generate_serman_services_nodes_for_consul.log

    WARNING: bad or empty input tm_nodes_count=, will use 2
    OK: TM nodes count is 2
    iwtm-serman-client-conf-6.7.21.419-release.x86_64
    package iwtm-consul is not installed
    OK: serman_prober reported 2 nodes
    ==> /opt/iw/tm5/tmp/sd_nodes.out

    <адрес_ноды>

    <==
    10.20.30.40 server
    10.20.30.41 client

    OK: Please copy the file to all nodes before upgrading TM on them, e.g.:
    scp /opt/iw/tm5/tmp/sd_nodes.out 10.20.30.40:/opt/iw/tm5/tmp/sd_nodes.out

  42. где <адрес_ноды> - IP-адрес или доменное имя ноды, на которую необходимо скопировать файл sd_nodes.out.

    В нашем примере команда будет следующейСкопируйте файл sd_nodes.out на все указанные ноды, исключая ту, на которой он был создан.
    Выполните следующую команду:

    scp /opt/iw/tm5/tmp/sd_nodes.out 10.20.30.40<адрес_ноды>:/opt/iw/tm5/tmp/sd_nodes.out

    После ввода команды копирования где <адрес_ноды> - IP-адрес или доменное имя ноды, на которую необходимо скопировать файл sd_nodes.out.
    Команды для копирования файла sd_nodes.out на все необходимые IP-адреса указаны последними строками в выводе в консоль на предыдущем шаге.

    В нашем примере команда будет следующей:

    scp /opt/iw/tm5/tmp/sd_nodes.out 10.20.30.40:/opt/iw/tm5/tmp/sd_nodes.out

    После ввода команды копирования будет выведен запрос вида:

    Are you sure you want to continue connecting (yes/no)?

    Для продолжения наберите yes на клавиатуре и нажмите Enter.  
    Затем введите пароль от целевой ноды и нажмите Enter.

    Предупреждение
    titleВажно!

    На Убедитесь, что на всех обновляемых серверах, включая сервер СУБД, файл sd_nodes.out необходимо переместить находится в директориюдиректории /opt/iw/tm5/tmp, в противном случае переместите файл в указанную директорию.

    Введите команду
    Информация
    titleПримечание:

    Выполните действия 23-27, 31 и 32 только на одной ноде. Допускается выбрать любую ноду.

  43. Якорь
    34
    34
    Введите команды для остановки сервисов сервера Traffic Monitor:
    service iwtm stop
    service php-fpm stop (если обновление ведется с версии 6.7.x или 6.9.x)
    service iwtm-php-fpm stop (если обновление ведется с версии 6.10.x)
    service nagios stop

  44. В зависимости от используемой СУБД введите команду для запуска процесса обновления пакетов:

    • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg,iwtm-policy* (если используется СУБД Oracle)

    • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle,iwtm-policy* (если используется СУБД PostgreSQL)
  45. Перед загрузкой нужных для установки пакетов будет выведен запрос вида . Для продолжения наберите Y на клавиатуре и нажмите Enter.
    Начнется скачивание пакетов из репозитория, а затем - установка пакетов. Это может занять некоторое время.
  46. Снова введите команду для вызова файлового менеджера:
    mc
  47. Если во время использования Системы в конфигурационные файлы с расширением .conf вносились изменения, перейдите в директории /opt/iw/tm5/etc и /etc/nginx и проверьте наличие файлов с расширением conf.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами Введите команду для поиска и вывода на экран консоли списка файлов с расширением .rpmnew.
    find / -name "*rpmnew*" -print
    Если такие файлы найдены, их необходимо корректно объединить с конфигурационными файлами (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").

    Предупреждение
    titleВажно!

    При обновлении Traffic Monitor Если в Системе используется СУБД PostgreSQL, при обновлении с версии 6.0 или 6.1 до 6.5 и более новых обязательно выполните следующие действия:

    Multiexcerpt include
    MultiExcerptNameRU
    PageWithExcerptОбъединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew

    Если во время использования Системы в конфигурационные файлы с расширением .cfg (служба Nagios) вносились изменения, перейдите в директории /etc/nagios/iwmon и /etc/nagios и проверьте наличие файлов с расширением cfg.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами

  48. Снова введите команду для вызова файлового менеджера:
    mc
  49. Перейдите в директорию opt/iw/tm5/etc/scripts/ и убедитесь в наличии файла iwssid.lua.upgrade.
    Файл iwssid.lua.upgrade не используется Системой, он служит источником информации для восстановления работоспособности Системы в случае ее глубокой кастомизации.
  50. Также в директории /opt/iw/tm5/etc/scripts/ должен быть файл iwssid.lua, его рекомендуется оставить без изменений, если выполнено по крайней мере одно из условий:
    • обновление Системы ведется с версии 6.9;
    • до обновления файл iwssid.lua не редактировался.
    В противном случае его необходимо корректно объединить с конфигурационным файлом iwssid.lua.rpmnew (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").
  51. Если во время использования Системы в файлы сценариев LUA (файлы с расширением .lua) вносились изменения, перейдите в директорию /opt/iw/tm5/etc/scripts/ и проверьте наличие файлов с расширением .lua.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").

  52. Для выхода из файлового менеджера введите команду:
    ").
  53. Для выхода из файлового менеджера введите команду:
    exit
  54. Обновите сервер СУБД (TME DB Server) - описание смотрите ниже.
 

Якорь
Шаг 2
Шаг 2
ШАГ 2. ОБНОВЛЕНИЕ СЕРВЕРА СУБД (TME DB Server)

Чтобы обновить Сервер СУБД (TME DB Server), выполните следующие действия:

  1. Откройте консоль обновляемого сервера:
    • в случае физического сервера - консоль отображается на экране монитора, подключенного к серверу;
    • в случае виртуального сервера - выполните команду Launch Virtual Machine Console (см. пример ниже).

      Откроется окно с консолью сервера.
  2. В строке Login as: (или login: - в зависимости от разновидности сервера) введите root и нажмите Enter.

  3. В строке root@<адрес_сервера>'s password: (или Password: - в зависимости от разновидности сервера) введите пароль пользователя root (суперпользователя) и нажмите Enter.
    На экране отобразится служебная информация и - последней строкой - приглашение ввести команду (командная строка).

  4. Введите команду для вызова файлового менеджера:

    mc 

    На экране отобразится окно файлового менеджера Midnight Commander, в котором удобно просматривать файлы.
    Навигация в файловом менеджере осуществляется при помощи стрелок клавиатуры и клавиши Enter или при помощи мыши. При этом без дополнительных действий вы можете вводить команды в командной строке (она видна в нижней части экрана).

    Для перехода на уровень выше установите курсор в поле /.. (первая строка в файловом менеджере) и нажмите Enter.

  5. Перейдите в директорию /opt/iw/tm5 и убедитесь в наличии там файла iwks_mode.

     

    Информация
    titleПримечание:

    Если файл iwks_mode отсутствует в директории, то его необходимо создать. Для этого введите команду:

    touch iwks_mode

  6. Установите курсор на файл iwks_mode и нажмите клавишу F3.
    На экране отобразится содержимое файла iwks_mode: слово "iwdb" (оно указывает на тип установки - TME DB server).

    Информация
    titleПримечание:

    Если файл имеет другое содержимое:

    1. повторно  Повторно нажмите F3.

    2. нажмите Нажмите F4.

    3. в В открывшемся окне удалите все символы и, в зависимости от редакции Системы, введите iwdb

    4. нажмите Нажмите F2.

    5. в В открывшемся окне подтвердите сохранение файла, нажав Save.

    6. нажмите Ннажмите F10.

    7. нажмите Нажмите F3 и убедитесь в корректности содержимого файла.

  7. Нажмите F3.
  8. Введите команду:
    mkdir -p /mnt/rhel-dvd 
    Будет создана директория /mnt/rhel-dvd
  9. Убедитесь, что диск с дистрибутивом InfoWatch Traffic Monitor подключен к серверу (см. статью "Обновление Системы", действие 2).
  10. Введите команду:
    mount /dev/cdrom /mnt/rhel-dvd

    Информация
    titleПримечание:

    Между частями команды "/dev/cdrom" и "/mnt/rhel-dvd" есть пробел.

    Дистрибутивный диск, находящийся в разделе /dev/cdrom, будет подключен в качестве репозитория в директории /mnt/rhel-dvd.

  11. Перейдите в директорию /mnt/rhel-dvd и убедитесь в наличии там файлов и папок. Если директория пуста, повторите действия 9 и 10.

  12. Перейдите в директорию /etc/yum.repos.d и убедитесь в наличии там файла rhel-dvd.repo (этот файл потребуется для указания пути к файлам обновления).

    Информация
    titleПримечание:

    Ввиду того, что в файловом менеджере применена алфавитная сортировка, папки стоят раньше файлов располагаются перед файлами (поскольку имеют в начале префикс - дробную черту (/ , слеш)). Поэтому директория /yum.repos.d стоит одной из последних в списке папок, начинающихся с символа дробной черты (/), но до первого файла.

     

    Информация
    titleПримечание:

    Если файл rhel-dvd.repo отсутствует в директории, то его необходимо создать. Для этого введите команду:

    touch rhel-dvd.repo

  13. Установите курсор на файл rhel-dvd.repo и нажмите F4.
  14. Убедитесь, что файл имеет следующее содержимое:

    [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

    Предупреждение
    titleВажно!

    Если текст файла отличается, замените его на указанный.

  15. В параметрах enabled  блоков [rhel-dvd] и ,[rhel-dvd-iwtm] замените значения с 0 на 1.Если вы хотите установить новую стандартную БКФ (старая БКФ и все внесенные в нее изменения будут утеряны), в параметре enabled блока и [rhel-dvd-iwtm-cfdb] замените значение замените значения с 0 на 1. Произведенные во время работы изменения БКФ после обновления будут сохранены.
  16. Нажмите F2.
  17. В открывшемся окне подтвердите сохранение файла, нажав Save.
  18. Нажмите F10.
  19. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

  20. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  21. Введите команду для очищения кеша менеджера пакетов:
    yum clean allЕсли в Системе используется СУБД Oracle, выполните следующие действия:
  22. Введите команду для остановки СУБД Oracleслужб:

    service

    oracle

    iwtm stop

  23. Введите команду для переключения на нужного пользователя:
    su - oracle
  24. Введите команду для получения списка установленных в Системе патчей:
    /u01/app/oracle

    Информация
    titleПримечание:

    При наличии в Системе подсистемы Краулер потребуется приостановить службы указанной подсистемы (на сервере Краулер). Данная процедура выполняется на сервере, где установлена подсистема, стандартными средствами ОС Windows: Пуск  -  Панель управления  -  Администрирование  -  Службы, затем потребуется выделить службу в списке служб и нажать Приостановка службы.

  25. Если в Системе используется СУБД Oracle, выполните следующие действия:
    1. Введите команду для остановки СУБД Oracle:
      service oracle stop

    2. Введите команду для переключения на нужного пользователя:
      su - oracle
    3. Введите команду для получения списка установленных в Системе патчей:
      /u01/app/oracle/product/db_1/OPatch/opatch lsinventory | grep "Patch" | grep "applied"

      на На экране отобразится список патчей, установленных в Системе. Запишите все номера, указанные после слов "Patch" (в другой записи номер патча - это первые восемь цифр после буквы p. Например, номер патча p19972569_112040_Linux-x86-64.zip - это 19972569). Данные номера понадобятся для того, чтобы сверить установленные и необходимые для обновления патчи.

    4. Снова введите команду для вызова файлового менеджера:
      mc
    5. Перейдите в директорию /mnt/rhel-dvd/infowatch/extras/OraclePatches и убедитесь, что номера патчей, расположенных в директории, входят в список номеров патчей, установленных в Системе (которые вы записали).

       

      Информация
      titleПримечание:

      Если какого-либо патча из директории /mnt/rhel-dvd/infowatch/extras/OraclePatches нет в списке установленных, потребуется установить данный патч.

      Перед установкой патча может потребоваться обновить утилиту OPatch. Для этого выполните следующие действия:

      1. Если файловый менеджер Midnight Commander работает, для выхода (требуется для лучшего контроля выполнения команд) введите команду:
        exit
      2. Для создания резервной копии введите команду:
        mv /u01/app/oracle/product/db_1/OPatch /u01/app/oracle/product/db_1/OPatch_backup
      3. Введите команду для извлечения архива с новой версией:
        unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p6880880_112000_Linux-x86-64.zip -d /u01/app/oracle/product/db_1
      4. Введите команду для переключения обратно на пользователя root:
        exit
      5. Для предоставления пользователю oracle прав на работу с директорией и файлами введите команду:
        chown oracle:oinstall -R /u01/app/oracle/product/db_1/OPatch
      Для установки патча
      1. Введите команду для переключения на нужного пользователя:
        su - oracle

      Для установки патча выполните следующие действия (пример приведен для патча с номером 12345678 - p12345678_112040_Linux-x86-64.zip):

      1. Если файловый менеджер Midnight Commander работает, для выхода (требуется для лучшего контроля выполнения команд) введите команду:
        exit
      2. Введите команду для извлечения патча:
        unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/
      3. Введите команду для перехода в нужную директорию:
        cd /tmp/12345678/
      4. В зависимости от типа патча введите команду для установки:
        • /u01/app/oracle/product/db_1/OPatch/opatch napply . -silent -ocmrf /mnt/rhel-dvd/infowatch/extras/OraclePatches/ocm0.rsp (в случае композитного (составного) патча);
        • /u01/app/oracle/product/db_1/OPatch/opatch apply -silent -ocmrf /mnt/rhel-dvd/infowatch/extras/OraclePatches/ocm0.rsp (в случае одиночного патча).
        Когда патч установится, на экран будет выведено сообщение: 
        Нажмите любую клавишу для продолжения.
        Далее следует загрузить измененные файлы SQL в БД.
      5. Введите команду для переключения обратно на пользователя root:
        exit
      6. Введите команду для запуска СУБД Oracle:
        service oracle start

      7. Введите команду для переключения на нужного пользователя:
        su - oracle
      8. К каждой отдельной базе данных, находящейся в данном Oracle home, на который установлен патч, следует подключиться при помощи SQL*Plus. Подключитесь под SYSDBA и запустите скрипт catbundle.sql, для этого выполните команды:

        cd $ORACLE_HOME/rdbms/admin
        sqlplus /nolog
        CONNECT / AS SYSDBA
        STARTUP
        @catbundle.sql cpu apply
        QUIT

        Выполнение скрипта catbundle.sql отображается в представлении dba_registry_history в виде записи о пакете обновлений (PSU).

      9. Введите команды для удаления более ненужных файлов:
        cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml

      Более подробную информацию по установке можно найти в файле README, расположенном для каждого патча в директории с его именем.

    6. если Если файловый менеджер Midnight Commander работает, для выхода (требуется для лучшего контроля выполнения команд) введите команду:
      exit
    7. введите Введите команду для переключения обратно на пользователя root:
      exit
    8. введите

      Введите команду для запуска СУБД Oracle:
      service oracle start

    Введите команду для остановки служб:
    service iwtm stop
  26. В зависимости от используемой СУБД и необходимости обновить БКФ введите команду для запуска процесса обновления пакетов:

      Если в параметре enabled блока [rhel-dvd-iwtm-cfdb] установлено значение 0:
      • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg

    1. ,iwtm-policy*
      •  (если используется СУБД Oracle)

      • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle
    ,iwtm-policy*
      •  (если используется СУБД PostgreSQL
    )
  27. Если в параметре enabled блока [rhel-dvd-iwtm-cfdb] установлено значение 1
    • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg (если используется СУБД  Oracle)

      • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle (если используется СУБД PostgreSQL )
    Перед загрузкой нужных для установки пакетов будет выведен запрос вида Image Removed. Для продолжения наберите Y на клавиатуре и нажмите Enter.
    Начнется скачивание пакетов из репозитория, а затем - установка
      •  )

  28. Перед загрузкой нужных для установки пакетов будет выведен запрос вида Image Added. Для продолжения наберите Y на клавиатуре и нажмите Enter.
    Начнется скачивание пакетов из репозитория, а затем - установка пакетов. Это может занять некоторое время.
  29. Снова введите команду для вызова файлового менеджера:
    mc
  30. Если во время использования Системы в конфигурационные файлы с расширением .conf вносились изменения, перейдите в директории /opt/iw/tm5/etc и /etc/nginx и проверьте наличие файлов с расширением conf.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами Введите команду для поиска и вывода на экран консоли списка файлов с расширением .rpmnew.
    find / -name "*rpmnew*" -print
    Если такие файлы найдены, их необходимо корректно объединить с конфигурационными файлами (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").

    Предупреждение
    titleВажно!

    При обновлении Traffic Monitor Если в Системе используется СУБД PostgreSQL, при обновлении с версии 6.0 или 6.1 до 6.5 и более новых обязательно выполните следующие действия:

    Multiexcerpt include
    MultiExcerptNameRU
    PageWithExcerptОбъединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew

    Если во время использования Системы в конфигурационные файлы с расширением .cfg (служба Nagios) вносились изменения, перейдите в директории /etc/nagios/iwmon и /etc/nagios и проверьте наличие файлов с расширением cfg.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами

  31. Снова введите команду для вызова файлового менеджера:
    mc
  32. Перейдите в директорию opt/iw/tm5/etc/scripts/ и убедитесь в наличии файла iwssid.lua.upgrade.
    Файл iwssid.lua.upgrade не используется Системой, он служит источником информации для восстановления работоспособности Системы в случае ее глубокой кастомизации.
  33. Также в директории /opt/iw/tm5/etc/scripts/ должен быть файл iwssid.lua, его рекомендуется оставить без изменений, если выполнено по крайней мере одно из условий:
    • обновление Системы ведется с версии 6.9;
    • до обновления файл iwssid.lua не редактировался.
    В противном случае его необходимо корректно объединить с конфигурационным файлом iwssid.lua.rpmnew (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").
  34. Если во время использования Системы в файлы сценариев LUA (файлы с расширением .lua) вносились изменения, перейдите в директорию /opt/iw/tm5/etc/scripts/ и проверьте наличие файлов с расширением .lua.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").

  35. В зависимости от используемой СУБД ").
  36. В зависимости от используемой СУБД перейдите в директорию:
    • /opt/iw/tm5/csw/oracle (если используется СУБД Oracle);
    • /opt/iw/tm5/csw/postgres (если используется СУБД PostgreSQL).
  37. Выделите файл database.conf.
  38. Нажмите F3.
  39. Убедитесь, что для параметра \set schema_version указана версия, до которой происходит обновление. Если указана старая версия, повторите действия 28 24 - 3732.
  40. Нажмите F3.
  41. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  42. Введите команду для остановки служб:
    service iwtm stop
    Информация
    titleПримечание:

    При наличии в Системе подсистемы Краулер потребуется приостановить службы указанной подсистемы (на сервере Краулер). Данная процедура выполняется на сервере, где установлена подсистема, стандартными средствами ОС Windows:  Пуск  -  Панель управления  -  Администрирование  -  Службы , затем потребуется выделить службу в списке служб и нажать  Приостановка службы .

  43. Убедитесь, что нет активных пользователей, подключенных к серверу через консоль управления (во всех веб-консолях произведен выход).
  44. Если в Системе Убедитесь, что нет активных пользователей, подключенных к серверу через консоль управления (во всех веб-консолях произведен выход).
  45. Если в Системе используется СУБД PostgreSQL, выполните Обновление СУБД PostgreSQL.
  46. В зависимости от используемой СУБД введите команду для переключения на нужного пользователя:
    • su - oracle - для переключения на пользователя oracle (если в Системе используется СУБД Oracle)
    • su - postgres - для переключения на пользователя postgres (если в Системе используется СУБД PostgreSQL)
  47. В зависимости от используемой СУБД введите команду для перехода в нужную директорию:
    • cd /opt/iw/tm5/csw/oracle - (если в Системе используется СУБД Oracle)
    • cd /opt/iw/tm5/csw/postgres - (если в Системе используется СУБД PostgreSQL)
  48. Введите команду для запуска скрипта (сценария) обновления БД:
    ./update.sh 

    Начнется процесс обновления схемы данных. Это может занять некоторое время. По окончании обновления на экране отобразятся информационное сообщение и приглашение командной строки:

  49. Введите команду для переключения обратно на пользователя root (суперпользователя):

    exit
  50. Снова введите команду для вызова файлового менеджера:
    mc
  51. Перейдите в директорию /etc/yum.repos.d, установите курсор на файл rhel-dvd.repo и нажмите F4.
  52. В Убедитесь, что в параметрах enabled блоков [rhel-dvd], [rhel-dvd-iwtm]  и и [rhel-dvd-iwtm] замените значения -cfdb] установлены значения 0. В противном случае замените их с 1 на на 0.
  53. Нажмите F2.
  54. В открывшемся окне подтвердите сохранение файла, нажав Save.
  55. Нажмите F10.
  56. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

  57. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  58. Введите команду для перезагрузки сервера:
    reboot
  59. Дождитесь загрузки сервера и выполните вход от имени пользователя root (ШАГ 1, действия 2 и 3 данной инструкции).
  60. Введите команду для проверки запуска процессов:
    service iwtm status 
    На экране отобразится список процессов и их статус. Сервисы должны быть запущены, при этом строки должны заканчиваться фразой "is running...":
    Image Removed

  61. Запустите все Серверы TM (TME Node Server) Выполните проверку работоспособности внутренних сервисов Системы - описание смотрите ниже.

 

Якорь
Шаг 3
Шаг 3
ШАГ 3. ПЕРЕЗАПУСК СЕРВЕРОВ TM (TME Node Server)

Чтобы перезапустить Серверы TM (TME Node Server), на каждом из них выполните следующие действия:

  1. На сервере TM (TME Node Server), на котором функционирует пакет web-gui, введите команду для очистки кеша:

    redis-cli flushall

  2. Снова введите команду для вызова файлового менеджера:
    mc
  3. Перейдите в директорию /etc/yum.repos.d, установите курсор на файл rhel-dvd.repo и нажмите F4.
  4. В параметрах enabled блоков [rhel-dvd], [rhel-dvd-iwtm] и [rhel-dvd-iwtm-cfdb] замените значения с 1 на 0.
  5. Нажмите F2.
  6. В открывшемся окне подтвердите сохранение файла, нажав Save.
  7. Нажмите F10.
  8. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

  9. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit

  10. Введите команду для перезагрузки сервера:

    reboot
  11. Дождитесь загрузки сервера и выполните вход от имени пользователя root (ШАГ 1, действия 2 и 3 данной инструкции).
  12. Введите команду для проверки запуска процессов:
    service iwtm status
    На экране отобразится список процессов и их статус. Обычно сервисы iw_qmover_client и iw_qmover_server бывают остановлены, а все остальные сервисы - запущены, при этом строки должны заканчиваться фразой "is stopped (disabled)..." для сервисов iw_qmover_client и iw_qmover_server и фразой "is running..." для всех остальных сервисов:
    Image Removed

    Информация
    titleПримечание:

    При наличии в Системе подсистемы Краулер потребуется запустить службы указанной подсистемы (на сервере Краулер). Данная процедура выполняется на сервере, где установлена подсистема, стандартными средствами ОС Windows: Пуск - Панель управления - Администрирование - Службы, затем потребуется выделить службу в списке служб и нажать Запуск службы.

Обновление серверов Traffic Monitor распределенного типа установки завершено. Номер версии Системы в окне О системе Консоли управления Traffic Monitor должен измениться на новый. Если в Системе есть другие серверы или подсистемы, подлежащие обновлению, воспользуйтесь инструкциями данного раздела.

Информация
titleПримечание:

Для корректного отображения консоли управления до начала работ удалите кеш в вашем браузере. Данное действие выполняется стандартными средствами браузера.

 

Дорогие коллеги,

 

1.       Понимая, что слишком сладкие недели в этом году в  начале мая, памятуя опыт 2013 года, чтобы не было драки относительно того, кому достанутся эти выходные дни, а кому придется работать, мы приняли волевое решение отправиться всем вместе дружно отдыхать.

 

Sv translation
languageen

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:

Image Removed

 

All TM servers (TME Node Server installation type) and DBMS server (TME DB Server must be updated).

Предупреждение
titleNote!

Each server should have unique correct FQDN.

The update is done in the following order:

Step 1. Updating all TM servers (TME Node Server).

Step 2. Updating and restarting DBMS (TME DB Server).

Step 3. Restarting all TM servers (TME Node Server).

STEP 1. UPDATING ALL TM SERVERS (TME Node Server)

To update TM servers (TME Node Server), take the following steps on each of them:

  • 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 the example below).
      Image Removed 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.
    Image Removed
  • 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.
    Image Removed
    The screen will display the service information and (in the last line) an invitation to enter the command (command line).

    Информация
    titleTip:

    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  #  or  $  (depending on the user who logged in). Before typing the next command, make sure that an invitation is displayed at the command line.

  • Enter the command to call the file manager:
    mc
    Image Removed

    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.
    Image Removed

    Информация
    titleNote:

    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.
    The screen will display the content of iwks_mode file: "iwtm" word (indicated that the installation type is TME Node server). 

    Информация
    titleNote:

    If the file content is different:

    1. press F3 again.

    2. press F4.

    3. in the window that opens, delete all characters and enter iw tm

    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.

  • 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 the "Updating the System" article, step 2).
  • Enter the command:
    mount /dev/cdrom /mnt/rhel-dvd

    Информация
    titleNote:

    There is a space between the words "/dev/cdrom" and "/mnt/rhel-dvd".

    The distribution disk which is located in /dev/cdrom section will be connected as a repository in /mnt/rhel-dvd directory.

  • Go to /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).

    Информация
    titleNote:

    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 .

    Image Removed

    Информация
    titleNote:

    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 that 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

    Предупреждение
    titleImportant!

    If the text of the file is different, replace it with the specified one.

  • In the [rhel-dvd] and [rhel-dvd-iwtm] blocks, change values of the enabled parameter from 0 to 1.
  • 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

    Информация
    titleNote:

    If there are 2 and more interception servers within the System, the next action is to be taken only when the previous one was taken for each of the servers.

  • 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 events are processed, these directories will be empty.

    Предупреждение
    titleImportant!

    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
  • It is required to get the file (file name is  - sd_nodes.out), containing IP-adresses of nodes for update. For this purpose, run the script from distribution disk:

    In case of 2 nodes:
    upgrade/generate_serman_services_nodes_for_consul.sh
    In case of more then 2 nodes: 
    upgrade/generate_serman_services_nodes_for_consul.sh --tm_nodes_count 

    upgrade/generate_serman_services_nodes_for_consul.sh

    There is a model of console interface:

    See log files for more details:
        /var/log/infowatch/generate_serman_services_nodes_for_consul.out
        /var/log/infowatch/generate_serman_services_nodes_for_consul.err
    
    iwtm-serman-client-conf-6.9.0.609-release.x86_64
    пакет iwtm-consul не установлен
    WARNING: missing binary '/opt/iw/tm5/bin/serman_prober', trying to install 'iwtm-qatools' package...
    пакет iwtm-qatools не установлен

    ПРОВЕРКА РАБОТОСПОСОБНОСТИ ВНУТРЕННИХ СЕРВИСОВ СИСТЕМЫ

    Запустите службы iw_bookworm, iw_licensed, iw_updater и iw_kicker на тех серверах, на которых они установлены и добавлены в автозапуск, и проверьте их состояние.

    Для корректной работы службы iw_licensed и iw_kicker должны быть запущены в единственном экземпляре.

    Предупреждение
    titleВажно!

    Если служба не запустилась успешно, проверьте соответствующий лог-файл на наличие ошибок в процессе обновления и обратитесь в службу технической поддержки компании InfoWatch по адресу support@infowatch.com.
    Вы также можете посетить раздел технической поддержки на нашем сайте:

    www.infowatch.ru/services/support.

    Лог-файлы служб для проверки:

    • /opt/iw/tm5/log/bookworm.log - для службы iw_bookworm
    • /opt/iw/tm5/log/updater.log - для службы iw_updater
    • /opt/iw/tm5/log/licserv.log - для службы iw_licensed
    • /opt/iw/tm5/log/web-console-error.log - для службы iw_kicker

    Лог-файлы служб рекомендуется проверить и в случае успешного запуска служб, чтобы исключить возникновение ошибок.
    Рекомендованный уровень логирования для проверки - не ниже INFO. Лог-файл может отсутствовать, если не было записей об ошибках.

    Для проверки выполните следующие действия:

    1. Выполните команду для запуска службы iw_bookworm:
      service iwtm start bookworm
    2. Службе может потребоваться время на включение. Для проверки состояния службы введите команду:
      curl -s http://localhost:8500/v1/health/checks/bookworm | python -mjson.tool
      В результате выполнения команды будет выведена информация об указанной службе:
      Image Added
    3. Проверьте значения блоков "Node" и "Status":
      1. В блоке "Node" должно быть указано имя ноды в кластере Consul, на которой установлена проверяемая служба;
      2. В блоке "Status" должно быть указано "passing".
    4. Выполните команду для запуска службы iw_licensed:
      service iwtm start licensed
    5. Службе может потребоваться время на включение. Для проверки состояния службы iw_licensed введите команду:
      curl -s http://localhost:8500/v1/health/checks/licserv | python -mjson.tool
      Выполните действие 3 текущего шага.
    6. Выполните команду для запуска службы iw_updater:
      service iwtm start updater
    7. Службе может потребоваться время на включение. Для проверки состояния службы iw_updater необходимо проверить файл /opt/iw/tm5/log/updater.log на наличие ошибок в процессе обновления.
      Введите команду, предварительно убедившись, что адрес в команде указан верно:
      grep -r 'error' /opt/iw/tm5/log/updater.log || echo "All good"
      В случае отсутствия ошибок будет выведено сообщение All good.
    8. Для проверки службы iw_kicker необходимо запустить на Сервере СУБД службу iw_blackboard:
      service iwtm start blackboard
      Выполните команду для запуска службы iw_kicker:
      service iwtm start kicker
    9. Службе может потребоваться время на включение. Для проверки состояния службы iw_kicker необходимо проверить файл /opt/iw/tm5/log/web-console-error.log на наличие ошибок в процессе обновления.
      Введите команду, предварительно убедившись, что адрес в команде указан верно:
      grep -r 'error' /opt/iw/tm5/log/web-console-error.log || echo "All good"
      В случае отсутствия ошибок будет выведено сообщение All good.
    10. Выполните команду для остановки служб:
      service iwtm stop
    11. Завершите обновление Сервера СУБД - описание смотрите ниже.

    Якорь
    Шаг 4
    Шаг 4
    ШАГ 4. ЗАВЕРШЕНИЕ ОБНОВЛЕНИЯ НА СЕРВЕРЕ  СУБД (TME DB Server)

    Чтобы завершить обновление на Сервере СУБД (TME DB Server), выполните следующие действия:

    1. Введите команду для перезагрузки сервера:
      reboot

    2. Дождитесь загрузки сервера и выполните вход от имени пользователя root (ШАГ 1, действия 2 и 3 данной инструкции).
    3. Введите команду для проверки запуска процессов:
      service iwtm status

      На экране отобразится список процессов и их статус. Сервисы должны быть запущены, при этом строки должны заканчиваться фразой "is running...":
      Image Added

    4. Запустите все Серверы TM (TME Node Server) - описание смотрите ниже.

    Якорь
    Шаг 5
    Шаг 5
    ШАГ 5. ПЕРЕЗАПУСК СЕРВЕРОВ TM (TME Node Server)

    Чтобы перезапустить Серверы TM (TME Node Server), на каждом из них выполните следующие действия:

    1. На сервере TM (TME Node Server), на котором функционирует пакет web-gui, введите команду для очистки кеша:

      redis-cli flushall

    2. Снова введите команду для вызова файлового менеджера:
      mc
    3. Перейдите в директорию /etc/yum.repos.d, установите курсор на файл rhel-dvd.repo и нажмите F4.
    4. Убедитесь, что в параметрах enabled блоков [rhel-dvd], [rhel-dvd-iwtm] и [rhel-dvd-iwtm-cfdb] установлены значения 0. В противном случае замените их с 1 на 0.
    5. Нажмите F2.
    6. В открывшемся окне подтвердите сохранение файла, нажав Save.
    7. Нажмите F10.
    8. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

    9. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
      exit

    10. Введите команду для перезагрузки сервера:

      reboot
    11. Дождитесь загрузки сервера и выполните вход от имени пользователя root (ШАГ 1, действия 2 и 3 данной инструкции).
    12. Введите команду для проверки запуска процессов:
      service iwtm status

      На экране отобразится список процессов и их статус. Обычно сервисы iw_qmover_client, iw_qmover_server и iw_image2test_fre_batch бывают остановлены, а все остальные сервисы - запущены, при этом строки должны заканчиваться фразой "is stopped (disabled)..." для сервисов iw_qmover_client, iw_qmover_server и iw_image2test_fre_batch и фразой "is running..." для всех остальных сервисов:
      Image Added 

      Информация
      titleПримечание:

      При наличии в Системе подсистемы Краулер потребуется запустить службы указанной подсистемы (на сервере Краулер). Данная процедура выполняется на сервере, где установлена подсистема, стандартными средствами ОС Windows: Пуск - Панель управления - Администрирование - Службы, затем потребуется выделить службу в списке служб и нажать Запуск службы.

    Обновление серверов Traffic Monitor распределенного типа установки завершено. Номер версии Системы в окне О системе Консоли управления Traffic Monitor должен измениться на новый. Если в Системе есть другие серверы или подсистемы, подлежащие обновлению, воспользуйтесь инструкциями данного раздела.

    Предупреждение
    titleWarning!

    Если в Системе настроены автоматические синхронизации с LDAP-серверами, для гарантированной загрузки сущностей после обновления выполните синхронизации вручную (см. "Infowatch Traffic Monitor. Руководство пользователя", статья "Запуск синхронизации с сервером вручную").

    Информация
    titleПримечание:

    Для корректного отображения Консоли управления до начала работ удалите кеш в вашем браузере. Данное действие выполняется стандартными средствами браузера.

    Sv translation
    languageen

    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:

    Image Added

     

    All TM servers (TME Node Server installation type) and DBMS server (TME DB Server) must be updated.

    Предупреждение
    titleNote!

    Each server should have a unique correct FQDN.

    Информация
    titleNote:

    If you connect remotely via SSH, it is recommended using the utility Screen. 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 the 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 a specific screen with «name»;
    • exit - exit the screen (to be input within the screen window).


    The update is done in the following order:

    Step 1. Updating all TM servers (TME Node Server).

    Step 2. Updating DBMS server (TME DB Server).

    Step 3. Healthcheck of internal services of the System.

    Step 4. Restarting DBMS server (TME DB Server).

    Step 5. Restarting all TM servers (TME Node Server).

    STEP 1. UPDATING ALL TM SERVERS (TME Node Server)

    To update TM servers (TME Node Server), take the following steps on each of them:

    1. 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 the example below).
        Image Added A window with the server console will open.
    2. In the Login as: (or login: - depending on the server type) line, enter root and press Enter.
      Image Added
    3. 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.
      Image Added
      The screen will display the service information and (in the last line) an invitation to enter the command (command line).

      Информация
      titleTip:

      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    #    or    $    (depending on the user who logged in). Before typing the next command, make sure that an invitation is displayed at the command line.

    4. Enter the command to call the file manager:
      mc
      Image Added

      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.

    5. Go to the /opt/iw/tm5 directory and make sure that it contains iwks_mode file.
      Image Added

      Информация
      titleNote:

      If iwks_mode file is missing in the directory, you need to create it. For this, enter the command:

      touch iwks_mode

    6. 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). 

      Информация
      titleNote:

      If the file content is different:

      1. press F3 again.

      2. press F4.

      3. in the window that opens, delete all characters and enter iw tm

      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.

    7. Press F3.
    8. Информация
      titleNote:

      If you update the System from version 6.10.x, after this please go to action 9 .

      To prepare the System for update the following actions should be taken:
      a. On DBMS server (TME DB Server):
      i. Take the actions 1-7 of Step 2 (see below).
      ii. Go to /opt/iw/tm5/etc directory, position the cursor on serman.conf file and press F3.
      iii. In  DefaultInterface find the IP address.
      b. On all TM (TME Node Server) servers
      i. Go to  /opt/iw/tm5/etc directory, position the cursor on serman.conf file and press F4.
      ii. Find SermanHost block.
      Compare its value with IP address, specified in serman.conf on DBMS server (TME DB Server) .
      iii. In case they don't match, replace the value of  SermanHost block on TM serves (TME Node Server) with IP address, specified in  DefaultInterface block of serman.conf file on DBMS server  (TME DB Server) .
      iv. Press F2.
      v. In the opened window make sure the file is to be saved by pressing Save.
      vi. Press F10.
      c. On DBMS server (TME DB Server), press F3 to exit the serman.conf file viewing mode.

    9. Якорь
      9
      9
      Go to  /etc/yum.repos.d directory and make sure that it contains the rhel-dvd.repo file (this file is required to specify the path to the update files).

      Информация
      titleNote:

      Taking into account that elements are sorted in the file manager 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 before the first file .

      Image Added

      Информация
      titleNote:

      If the rhel-dvd.repo file is missing in the directory, you need to create it. To do this, enter the command:

      touch rhel-dvd.repo

    10. Position the cursor on the rhel-dvd.repo file and press F4.

    11. Make sure that 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

      Предупреждение
      titleImportant!

      If the text of the file is different, replace it with the specified one.

    12. In the [rhel-dvd] and [rhel-dvd-iwtm] blocks, change values of the enabled parameter from 0 to 1.
    13. Press F2.
    14. In the window that opens, confirm the file saving by clicking Save.
    15. Press F10.
    16. Press F3 and make sure that the file content is correct, then press F3 again to close the file.

    17. To exit the file manager (is required to better control command execution), enter the command:
      exit
    18. Enter the command to clear the package manager cache:
      yum clean all
    19. 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

      Информация
      titleNote:

      If there are 2 and more interception servers within the System, the next action is to be taken only when the previous one was taken for each of the servers.

    20. Enter the command to call the file manager again:
      mc
    21. Wait until all the events in the queue for processing are processed. Events in the queue are stored 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.

      Предупреждение
      titleImportant!

      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.

    22. To exit the file manager (is required to better control command execution), enter the command:
      exit
    23. Enter the command:

      mkdir -p /mnt/rhel-dvd 
      The following directory will be created: /mnt/rhel-dvd

      Информация
      titleNote:

      If you update the System from version 6.10.x, after this please go to action 29.

    24. Connect a disk with the current version of InfoWatch Traffic Monitor to the server (see  Updating the System, action 2).

    25. Enter the command:

      mount /dev/cdrom /mnt/rhel-dvd

       

      Информация
      titleNote:

      There is a blank betwenn  "/dev/cdrom" and "/mnt/rhel-dvd".

      The distributive, located in /dev/cdrom will be connected as a repository in /mnt/rhel-dvd directory.

       

    26. Go to  /mnt/rhel-dvd directory and make sure the files and folders are in place. In case the directory is empty, repeat actions 24 and 25.

    27. Enter the command:

      yum install iwtm-qatools

      Before downloading the packages required for installation, the following request will display:

      ===============================================================================================================================
      Package Arch Version Repository Size
      ===============================================================================================================================
      Installing:
      iwtm-qatools x86_64 6.7.21.419-release TM-distr 3.9 M
      Installing for dependencies:
      iwtm-adlibitum-tool x86_64 6.7.21.419-release TM-distr 121 k
      iwtm-liro2json x86_64 6.7.21.419-release TM-distr 405 k

       

      Transaction Summary
      =================================================

      Пакет Архитектура Версия Репозиторий Размер

      ==============================================================================

      ====== Установка: iwtm-qatools x86_64 6.9.0.609-release TM-distr 4.1 M Установка зависимостей: iwtm-adlibitum-tool x86_64 6.9.0.609-release TM-distr 116 k iwtm-liro2json x86_64 6.9.0.609-release


      Install 3 Package(s)

       

      Total download size: 4.4 M
      Installed size: 22 M
      Is this ok [y/N]:

      To continue, type Y and press Enter on the keyboard.

    28. After the package installation, enter the command:

      umount /mnt/rhel-dvd

    29. Якорь
      29
      29
      Connect the new version of InfoWatch Traffic Monitor distributive to the server (see Updating the System, action 2).

    30. Enter the comand to clear the package manager cache:

      mount /dev/cdrom /mnt/rhel-dvd

    31. Enter the comand to clear the package manager cache:

      yum clean all

      Информация
      titleNote:

      If you update the System from version 6.10.x, after this please go to action 34.

    32. It is required to get the file (file name is  - sd_nodes.out), containing IP-adresses of nodes for update. For this purpose, run the script entering the command:

      In case of 2 nodes:
                        
      TM-distr 428 k Результат операции ==================================================================================== Установить
      bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh
                 
      3
       
      пакет(а,ов) Объем
       
      загрузки:
       
      4.7
       
      M Будет установлено: 24 M cp: «/opt/iw/tm5/.gdbinit» и «/root/.gdbinit» - один и тот же файл Установлено: iwtm-qatools.x86_64 0:6.9.0.609-release
       
      In case of more then 2 nodes: 
                         bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh --tm_nodes_count=<number_of_nodes>  
      Зависимости установлены: iwtm-adlibitum-tool.x86_64 0:6.9.0.609-release iwtm-liro2json.x86_64 0:6.9.0.609-release ==>

      where  <number_of_nodes> is the number of servers, including DBMS server.

      In current example the command is as follows:  bash /mnt/rhel-dvd/infowatch/upgrade/generate_serman_services_nodes_for_consul.sh
      There is a model of console interface:

      Will write to log file:
      /var/log/infowatch/generate_serman_services_nodes_for_consul.log

      WARNING: bad or empty input tm_nodes_count=, will use 2
      OK: TM nodes count is 2
      iwtm-serman-client-conf-6.7.21.419-release.x86_64
      package iwtm-consul is not installed
      OK: serman_prober reported 2 nodes
      ==> /opt/iw/tm5/tmp/sd_nodes.out

      <==


      10.

      60

      20.

      20.239

      30.40 server
      10.

      60

      20.

      21.50

      30.41 client

      OK:

      Please

      copy

      the

      file

      to

      all

      nodes

      before

      upgrading

      TM

      on

      them,

      e.g.:


      scp

      /opt/iw/tm5/tmp/sd_nodes.

      out 10

      out 10.

      60

      20.

      20

      30.

      239

      40:/opt/iw/tm5/tmp/sd_nodes.out

    33. Copy the file sd_nodes.out out  to all the nodes specified, except the one, where it was created.
      Enter the following command:
      scp /opt/iw/tm5/tmp/sd_nodes.out 10.60.21.50<node_address>:/opt/iw/tm5/tmp/sd_nodes.out

      Where the patch is not installed.

      Copy

      where <node_address> - is an IP-address or node's domain name, where the file sd_nodes.

      out  to the nodes below

      out should be copied to.

      Below is the command in accordance with our example:

      scp /opt/iw/tm5/tmp/sd_nodes.out 10.6020.2030.23940:/opt/iw/tm5/tmp/sd_nodes.outscp /opt/iw/tm5/tmp/sd_nodes.out 10.60.21.50:/tmp/sd_nodes.out

      After entering the command, the following request will display:

      Are you sure you want to continue connecting (yes/no)?

      To continue, click Yes and press Enter on the keyboard.
      Then enter the password for the receiving node and press Enter.

      Предупреждение
      titleImportant!

      Make sure the file sd_nodes.out is located in /opt/iw/tm5/tmp

      /sd_nodes.out

      After entering the copying command it is required entering the password for objective node.

    34. Enter the command:
      unmount /mnt/rhel-dvd
    35. Connect the new version of  InfoWatch Traffic Monitor distributive to the server (see "Updating the System" action 2).
    36. Enter the command:
      mount /dev/cdrom /mnt/rhel-dvd
    37. To clean the packages manager cache, enter the command:
      yum clean all
    38. To stop services of Traffic Monitor server

      directory on all the servers to be updated, including DBMS server, otherwise you should relocate the file to the directory specified.

      Информация
      titleNote:

      Take the actions 23-27, 31 and 32 only on one node. You can choose any node.

    39. Якорь
      34
      34
      To stop Traffic Monitor server services, enter the commands:
      service iwtm stop 
      service php-fpm stop (if update is required for  6.7.x or 6.9.x version
      service iwtm-php-fpm stop (if update is required for  6.10.x version)
      service nagios stop
    40. In accordance with the DBMS used, enter the command to start the process of updating packages update:
      • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg,iwtm-policy* pg (if Oracle DBMS is used)

      • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle,iwtm-policy*  (if PostgreSQL DBMS  is used)
    41. Before loading files required for installation, the screen will display a request like this  . To continue, type Y and press Enter.
      Downloading packages from the repository and then installing the packages will begin. This may take some time.
      Image Removed
    42. Enter the command to call the file manager:
      mc
    43. 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.
      Image Added
    44. Enter the command to find and display the list of files with .rpmnew extension:
      find / -name "*rpmnew*" -print
      If the list of files is found, they should be correctly merged with configuration files accordingly (see " Merging configuration files").

      Предупреждение
      titleImportant!

      If PostgreSQL DBMS is used in the System, it is necessary to take the following steps when updating Traffic Monitor version When updating Traffic monitor from 6.0 or 6.1 version to 6.5 and higher:1. Go to the /later, the following actions are to be obligatory taken:

      Multiexcerpt include
      MultiExcerptNameENG
      PageWithExcerptОбъединение конфигурационных файлов

    45. Enter the command to call the file manager: 
      mc
    46. Go to opt/iw/tm5/etc/etc directory.

      2. Position the cursor on the postgresql.conf.rpmnew file.

      3. Press F3.

      4. Make sure that the value of Port parameter is 5433. If the parameter value is different, press F3 and change the parameter value to the required one. For this, take the following steps:

      1. Position the cursor on the postgresql.conf.rpmnew file in the file manager.
        Image Removed
      2. Press F4.
      3. Replace values of file sections with values of corresponding sections of the postgresql.conf file. The result will look like this: 
        Image Removed

        Информация
        titleNote:

        For the distributed installation type, the value of the "Host" field will be an IP address of the server where the DBMS is installed. For example: Image Removed

      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. Then press F3 again to close the file.

      8. Position the cursor on the postgresql.conf file in the file manager.
      9. Press F8 to delete the postgresql.conf file.
      10. In the window that opens, confirm the file deletion by clicking Yes.
      11. Select the postgresql.conf.rpmnew  file in the file manager.
      12. Press F6.
      13. In the to field, enter /opt/iw/tm5/etc/postgresql.conf and press Enter.
        Now the System has only one PostgreSQL configuration file - postgresql.conf. It has a file structure of the new version and the required content:

        Image Removed
    47. If while using the System, configuration files with .cfg extension (Nagios service)  have been modified, then go to the /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").
    48. If while using the System, LUA script files (files with .lua extension) have been modified, then go 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.
    49. 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 Update ifs done from version 6.9;
      - The file iwssid.lua was not edited before the update.
      Otherwise, it should be correctly merged with iwssid.lua configuration file (see "Merging configuration files").
    50. To leave the file manager, enter the command:
      exit
    51. Update the DBMS server (TME DB Server) - see the description below.

    STEP 2. UPDATING DBMS SERVER (TME DB Server)

    To update the DBMS server (TME DB Server), take the following steps:

    1. 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).
        Image Added A window with the server console will open.
    2. In the Login as: (or login: - depending on the server type) line, enter root and press Enter.
    3. 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).

    4. Enter the command to call the file manager:
      mc 
      Image Added

      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.

    5. 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).
        Image Removed A window with the server console will open.
    6. In the Login as: (or login: - depending on the server type) line, enter root and press Enter.
    7. 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).

    8. Enter the command to call the file manager:
      mc 
      Image Removed

      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.

    9. Go to the /opt/iw/tm5 directory and make sure that it contains iwks_mode file.
      Image Removed

      Информация
      titleNote:

      If iwks_mode file is missing in the directory, you need to create it. For this, enter the command:

      touch iwks_mode

    10. Go to the /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").
    11. To leave the file manager, enter the command:
      exit
    12. Update the DBMS server (TME DB Server) - see the description below.

    STEP 2. UPDATING DBMS SERVER (TME DB Server)

    To update the DBMS server (TME DB Server), take the following steps:

    1. 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).make sure that it contains iwks_mode file.
      Image Added

      Информация
      titleNote:

      If iwks_mode file is missing in the directory, you need to create it. For this, enter the command:

      touch iwks_mode

    2. Position the cursor on the iwks_mode file and press F3.
      The screen will display the content of iwks_mode file: "iwdb" word (indicates that the installation type is TME DB server).

      Информация
      titleNote:

      If the file content is different:

      1. press F3 again.

      2. press F4.

      3. in the window that opens, delete all characters and enter iwdb

      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.

    3. Press F3.
    4. Enter the command:
      mkdir -p /mnt/rhel-dvd 
      The /mnt/rhel-dvd directory will be created.
    5. Make sure the distribution disk with InfoWatch Traffic Monitor is connected to the server (see "Обновление Системы", action 2).
    6. Enter the command:
      mount /dev/cdrom /mnt/rhel-dvd

      Информация
      titleNote:

      There is a space between 2 commands "/dev/cdrom" and "/mnt/rhel-dvd".

      The distribution disk, located in /dev/cdrom  section will be connected as a repository in the  /mnt/rhel-dvd directory.

    7. Go to /mnt/rhel-dvd directory and make sure that in contains files and folders. If the directory is empty, repeat steps 9 and 10.
    8. Go to /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).

      Информация
      titleNote:

      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 .

      Image Added

    9. The distribution disk which is located in the /dev/cdrom  section will be connected as a repository in the  /mnt/rhel-dvd  directory.
    10. 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.
    11. 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).

      Информация
      titleNote:

      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 .

      Image Removed
      Информация
      titleNote:

      If the file content is different:

      1. press F3 again.

      2. press F4.

      3. in the window that opens, delete all characters and enter iwdb

      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.

    12. Press F3.
    13. Enter the command:
      mkdir -p /mnt/rhel-dvd 
      The /mnt/rhel-dvd directory will be created.
    14. Make sure that a distribution disk with InfoWatch Traffic Monitor is connected to the server (see the "Обновление Системы" article, step 2).
    15. Enter the command:
      mount /dev/cdrom /mnt/rhel-dvd

      Информация
      titleNote:

      There is a space between the words "/dev/cdrom" and "/mnt/rhel-dvd".

    16. rhel-dvd.repo is missing in the directory, you need to create it. To do this, enter the command:

      touch rhel-dvd.repo

    17. Position the cursor on the file rhel-dvd.repo  and press F4.
    18. 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

      Предупреждение
      titleImportant!

      If the text of the file is different, replace it with the specified one.

    19. In the [rhel-dvd],[rhel-dvd-iwtm] and [rhel-dvd-iwtm-cfdb]  blocks, change values of the enabled parameter from 0 to 1. The content filtration base changes implemented during the operation are to be saved after the update.
    20. Press F2.
    21. In the window that opens, confirm the file saving by clicking Save.
    22. Press F10.
    23. Press F3 and make sure that the file content is correct, then press F3 again to close the file.

    24. To exit the file manager (is required to better control command execution), enter the command:
      exit
    25. Enter the command to clear the package manager cache:
      yum clean all
    26. To stop services, enter the commands one by one: 
      service iwtm stop
      If Oracle DBMS is used in the System, perform the following steps:
    27. Enter the command to stop Oracle DBMS:
      service oracle stop
    28. Enter the command to switch to the required user:
      su - oracle
    29. Enter the command to get the list of patches installed in the System:
      Информация
      titleNote:

      If the rhel-dvd.repo file is missing in the directorySystem, the Crawler subsystem is installed you need to create it. For this, enter the command:

      touch rhel-dvd.repo

    30. Position the cursor on the rhel-dvd.repo file and press F4.
    31. Make sure that 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

      Предупреждение
      titleImportant!

      If the text of the file is different, replace it with the specified one.

    32. In the [rhel-dvd] and [rhel-dvd-iwtm] blocks, change values of the enabled parameter from 0 to 1.
    33. If you want to install a new standard classification base (the old classification base and changes made to it will be lost), in the [rhel-dvd-iwtm-cfdb] block, change the value of the enabled parameter from 0 to 1.
    34. Press F2.
    35. In the window that opens, confirm the file saving by clicking Save.
    36. Press F10.
    37. Press F3 and make sure that the file content is correct, then press F3 again to close the file.

    38. To exit the file manager (is required to better control command execution), enter the command:
      exit
    39. Enter the command to clean the package manager cache:
      yum clean all
    40. 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.

    41. If Oracle DBMS is used in the System, perform the following steps:
      1. Enter the command to stop Oracle DBMS:
        service oracle stop
      2. Enter the command to switch to the required user:
        su - oracle
      3. 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"

        Image Added
        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.
      4. Again, enter the command to call the file manager:
        mc
      5. Go to the /mnt/rhel-dvd/infowatch/extras/OraclePatches directory and make sure that patch numbers in the directory are in the list of patches installed in the System (which you have written down).
        Image Added

        Информация
        titleNote:

        If any patch from the /mnt/rhel-dvd/infowatch/extras/OraclePatches directory is not in the list of installed patches, you should install this patch.

        Before installing the patch, OPatch utility is required to be updated. The following actions are to be taken to do that:

        1. If Midnight Commander  file manager is running, to exit it ( is required for better control command execution)  enter the command :
          exit
        2. To make a backup copy, enter the command:
          mv /u01/app/oracle/product/db_1/OPatch
        /opatch lsinventory | grep "Patch" | grep "applied"
        Image Removed
        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.
      6. Again, enter the command to call the file manager:
        mc
      7. Go to the 
        1. /u01/app/oracle/product/db_1/OPatch_backup
        2. To extract the archive with a new version, enter the command:
          unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches
         directory and make sure that patch numbers in the directory are in the list of patches installed in the System (which you have written down).
        Image Removed
        Информация
        titleNote:

        If any patch from the /mnt/rhel-dvd/infowatch/extras/OraclePatches directory is not in the list of installed patches, you should install this patch.

        Before installing the patch, OPatch utility is required to be updated. The following actions are to be taken to do that
        1. /p6880880_112000_Linux-x86-64.zip -d /u01/app/oracle/product/db_1
        2. 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):

        1. 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
        2. Enter the command to extract the patch:
          unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/
        3. Enter the command to go to the required directory:
          cd /tmp/12345678/
        4. In accordance with patch type, enter the command to install the patch :
          • /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 /
          • opatch napply . -silent -ocmrf /mnt/rhel-dvd/infowatch/extras/OraclePatches/
          p6880880_112000_Linux-x86-64.zip -d
          • ocm0.rsp (in case of composite patch);
          • /u01/app/oracle/product/db_1

        5. 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):

        1. If Midnight Commander file manager is running, to exit it (is required for better control command execution) enter the command
          • /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:  
          Image Added
          Press any key to continue.
          Then download the changed SQL file to the DB.
        2. Enter the command to switch to root (superuser) again:
          exit
        3. Enter the command to extract the patch:
          unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/start Oracle DBMS:
          service oracle start
        4. Enter the command to go switch to the required directoryuser:
          cd /tmp/12345678/
        5. 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:  Image Removed

        6. Press any key to continue.
        7. Enter the command to delete files which are not longer neededsu - oracle
        8. 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).
        9. To delete the files that are no more needed, enter the command:
          cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml-f /tmp/PatchSearch.xml

        Details on the installation can be found within the README file, located in a specific directory named after each patch.

      8. if Midnight Commander file manager is running, enter the command to exit it (this is required for better control of command execution):
        exit
      9. enter Enter the command to switch to the root user:
        logout exit
      10. enter the command to start Oracle DBMS:
        service oracle start
      Depending on the DBMS used and if update for content filtering base is required, enter the command to start the process of updating packages:
      a. If the parameter enabled within  the block [rhel-dvd-iwtm-cfdb] has the value 0:
      • 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)
      b.  If the parameter enabled within  the block [rhel-dvd-iwtm-cfdb] has the value 1
    42. Depending on the DBMS used, enter the command to start the process of packages update:
      • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg (if Oracle DBMS

       is
      • is used)

      • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle (if PostgreSQL DBMS
      •  
      •  is used)
    43. Before loading files required for installation, the screen will display a request like this  . To continue, type Y and press Enter.Downloading packages from the repository and then installing the packages will begin. This may take some time.
    44. Enter the command

      to call

      within the file manager

      : 
      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").to find and display the list of files with .rpmnew extension:
      find / -name "*rpmnew*" -print

      Предупреждение
      titleImportant!

      If PostgreSQL DBMS is used in the System, it is necessary to take the following steps when updating Traffic Monitor version When updating Traffic monitor from 6.0 or 6.1 version to 6.5 and higher:1. Go to the later, the following actiona are to be obligatory taken:

      Multiexcerpt include
      MultiExcerptNameENG
      PageWithExcerptОбъединение конфигурационных файлов

    45. Enter the command to call the file manager:
      mc

    46. Go to /opt/iw/tm5

      /etc directory.

      2. Position the cursor on the postgresql.conf.rpmnew file.

      3. Press F3.

      4. Make sure that the value of Port parameter is 5433. If the parameter value is different, press F3 and change the parameter value to the required one. For this, take the following steps:

      1. Position the cursor on the postgresql.conf.rpmnew file in the file manager.
        Image Removed
      2. Press F4.
      3. Replace values of file sections with values of corresponding sections of the postgresql.conf file. The result will look like this: 
        Image Removed

        Информация
        titleNote:

        For the distributed installation type, the value of the "Host" field will be an IP address of the server where the DBMS is installed. For example: Image Removed

      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. Then press F3 again to close the file.

      8. Position the cursor on the postgresql.conf file in the file manager.
      9. Press F8 to delete the postgresql.conf file.
      10. In the window that opens, confirm the file deletion by clicking Yes.
      11. Select the postgresql.conf.rpmnew  file in the file manager.
      12. Press F6.
      13. In the to field, enter /opt/iw/tm5/etc/postgresql.conf and press Enter.
        Now the System has only one PostgreSQL configuration file - postgresql.conf. It has a file structure of the new version and the required content:
    47. If while using the System, configuration files with .cfg extension (Nagios service)  have been modified, then go to the /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").
    48. If while using the System, LUA script files (files with .lua extension) have been modified, then go to the /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").
    49. Depending on DBMS, go to the directory:
      • /opt/iw/tm5/csw/oracle (if Oracle DBMS is used);
      • /opt/iw/tm5/csw/postgres (if PostgreSQL DBMS is used).
    50. Select the database.conf file.
    51. Press F3.
    52. 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 28 - 37.
    53. Press F3.
    54. To exit the file manager (is required to better control command execution), enter the command:
      exit
    55. To stop services, enter the commands one by one: 
      service iwtm stop
      Информация
      titleNote:

      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.

    56. Make sure that there are no active users connected to the server via the management console.
    57. If PostgreSQL DBMS is sed in the System, Обновление СУБД PostgreSQL should be performed.
    58. Depending on DBMS, 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)
    59. Depending on DBMS, 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)
    60. 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.
      Image Removed

    61. If web-gui package is installed on the DBMS server установлен на сервере СУБД (TME DB Server), enter the command to clear the cache:
      redis-cli flushall
    62. To switch back to the root user, enter the command:
      logout 
    63. Enter the command to open the file manager again:
      mc
    64. Go to /etc/yum.repos.d directory and set the cursor on the file rhel-dvd.repo and press F4.
    65. In enabled parameters of [rhel-dvd] and [rhel-dvd-iwtm] blocks replace the values from 1 to 0.
    66. Press F2.
    67. In the opened window save the file, pressing Save.
    68. Press F10.
    69. Press F3 and make sure the file is correct, then press F3 again to close the file.
    70. To leave the file manager (required of better commands execution) enter the command: 
      exit 

      /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.

    71. 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 file ( see "Merging configuration files").

    72. 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).
    73. Select the database.conf file.
      Image Added
    74. Press F3.
    75. 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 24 - 32.
    76. Press F3.
    77. To exit the file manager (is required to better control command execution), enter the command:
      exit
    78. To stop services, enter the commands one by one: 
      service iwtm stop
    79. Make sure that there are no active users connected to the server via the management console.
    80. If PostgreSQL DBMS is used in the System, Обновление СУБД PostgreSQL should be performed.
    81. 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)
    82. 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)
    83. 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.
      Image Added

    84. To switch back to the root user, enter the command:
      exit  
    85. Enter the command to open the file manager again:
      mc
    86. Go to  /etc/yum.repos.d directory and set the cursor on the file rhel-dvd.repo and press F4.
    87. Make sure the enabled parameters of [rhel-dvd], [rhel-dvd-iwtm] and [rhel-dvd-iwtm-cfdb] blocks are set to 0 values. Otherwise, replace the values from 1 to 0.
    88. Press F2.
    89. In the opened window save the file, pressing Save.
    90. Press F10.
    91. Press F3 and make sure the file is correct, then press F3  again to close the file.
    92. To leave the file manager (required of better commands execution) enter the command: 
      exit 
    93. Check the performance of system internal services  - see the description below.


    STEP 3. HEALTCHECK OF THE SYSTEM INTERNAL SERVICES

     

    Start the iw_bookworm, iw_licensed, iw_updater, and iw_kicker services on those  servers, where they have been installed to and added into autorun, check their state .

     

    Предупреждение
    titleImportant!

    If the service start has failed, check error messages in the log file of the service and contact our technical support: support@infowatch.com.

    Or you can visit our website:

    http://www.infowatch.com/support.

    Log files to be checked:

    • /opt/iw/tm5/log/bookworm.log - for the iw_bookworm service
    • /opt/iw/tm5/log/updater.log - for the iw_updater service
    • /opt/iw/tm5/log/licserv.log - for the iw_licensed service
    • /opt/iw/tm5/log/web-console-error.log - for the iw_kicker service

    We recommend checking log files even if services have been started successfully: to make sure that there are no errors.
    We recommend choosing the INFO or higher logging level for the check. If no errors have occurred, the log file can be missing.

     

    To run the health check, take the following steps:

      1. Enter the command to start the  service:
        service iwtm start bookworm

      2. Starting the service may take some time. To check the service state, run the following command:
        curl -s  http://localhost:8500/v1/health/checks/bookworm  | python -mjson.tool
        Information about the service will be displayed:
        Image Added

      3. Check values of the "Node" and "Status" blocks:
        1. The "Node" block should include the node name in the Consul cluster where the service is installed.
        2. The "Status" block should contain "passing".
    1. Run the following command to start the iw_updater service:
      service iwtm  start update
    2. Starting the service may take some time. To check the iw_updater service state, see if the /opt/iw/tm5/log/updater.log file contains update errors.
      Make sure that the address in the command is correct and then run the following command:
      grep -r 'error' /opt/iw/tm5/log/updater.log || echo "All good"
      If there are no errors, the All good message will be displayed.
    3. Run the following command to start the iw_kicker service:
      service iwtm  start kicker
    4. Starting the service may take some time. To check the iw_kicker service state, see if theйл /opt/iw/tm5/log/web-console-error.log file contains update errors.
      Make sure that the address in the command is correct and then run the following command:
      grep -r 'error' /opt/iw/tm5/log/web-console-error.log || echo "All good"
      If there are no errors, the All good message will be displayed.
    5. Run the following command to stop services:
      service iwtm stop
    6. Complete the DBMS server update - see the description below.

    STEP 4. COMPLETING UPDATE ON DBMS SERVER  ( TME DB Server )

    To complete update on  DBMS server  (TME DB Server), take the following actions:


    1. Enter the command to restart the server:
      reboot
    2. Wait until the server is started and log in under root (STEP 1, actions 2 and 3 in this instruction).
    3. 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 are to be started and running and the lines must for all of them should end with "is running...":
      Image Removed Image Added
    4. Start all TM Servers servers (TME Node Server) - see  see the description below.

    STEP 35. RESTARTING RESTARTING TM SERVERS  SERVERS  ( TME Node Server )

    To restart TM servers (TME Node Server), take the following steps actions on each serverof them:

    1. If web-gui package On TM server, where web-gui package is installed on TM server (TME Node Server), enter the command to clear the cache:
      redis-cli flushall

    2. Enter the command to open the file manager again:

      mc

    3. Go to /etc/yum.repos.d directory, set the cursor on the file rhelfile rhel-dvd.repo and press F4.
    4. In enabled parameters of Make sure the enabled parameters of [rhel-dvd],[rhel-dvd-iwtm]  and and [rhel-dvd-iwtm-cfdb] blocks are set to 0 value. Otherwise, replace the values from 1 to 0from 1 to 0.
    5. Press F2.
    6. In the opened window save the file, pressing Save.
    7. Press F10.
    8. Press F3 and make sure the file is correct, then press F3 again to close the file.
    9. To leave the file manager (required of better commands execution) enter the command: 
      exit 
    10. Enter the command to restart the server:

      reboot

    11. Wait until the server is started and log in under root (STEP 1, actions 2 and 3 in this instruction).
    12. 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 iw_qmover_client and iw_qmover_server services are ,  iw_qmover_server and iw_image2test_fre_batch services are stopped and all other services are started. For iwFor iw_qmover_client and iw_qmover_server services, , iw_qmover_server and iw_image2test_fre_batch services the lines should end with "is stopped (disabled)..." and for all other services , the lines should end with "is running...":

      Image RemovedImage Added

      Информация
      titleNote:

      If in the System , contains the Crawler subsystem is installed you need installed, it is required to start the 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.

    Предупреждение
    titleWarning!

    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").

    Информация
    titleNote:

    For the Management Console to be displayed correctly, delete the cache in your browser before you start working in the Management Console. This is to be done with browser standard tools.