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

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

Ключ

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

При обновлении Traffic Monitor с версии 6.x до 6.5 обязательно выполните следующие действия:

1. Перейдите в директорию /opt/iw/tm5/etc.

2. Установите курсор на файл postgresql.conf.rpmnew.

3. Нажмите F3.

4. Убедитесь, что значение параметра  Port равно 5433. Если значение данного параметра отличается, нажмите F3 и исправьте значение параметра на требуемое. Для этого выполните следующие действия:

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

  • Если во время использования Системы в файлы сценариев LUA (файлы с расширением .lua) вносились изменения, перейдите в директорию /opt/iw/tm5/etc/scripts/ и проверьте наличие файлов с расширением .lua.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами (см. статью "Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew").

  • В зависимости от используемой СУБД перейдите в директорию:
    • /opt/iw/tm5/csw/oracle (если используется СУБД Oracle);
    • /opt/iw/tm5/csw/postgres (если используется СУБД PostgreSQL).
  • Выделите файл database.conf.
    Image Removed
  • Нажмите F3.
  • Убедитесь, что для параметра \set schema_version указана версия, до которой происходит обновление. Если указана старая версия, повторите шаги 28 - 37.
  • Нажмите F3.
  • Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
    exit
  • Последовательно введите команды для остановки служб:
    service iwtm stop
    service php-fpm stop
    service nagios stop
  • Sv translation
    languageru

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

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

    Включить выборку
    Установка Системы
    Установка Системы
    nopaneltrue

     

    Чтобы обновить Систему, выполните следующие действия:

    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 CommanerCommander, в котором удобно просматривать файлы.
      Навигация в файловом менеджере осуществляется при помощи стрелок клавиатуры и клавиши Enter или при помощи мыши. При этом без дополнительных действий вы можете вводить команды в командной строке (она видна в нижней части экрана).

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

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

       

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

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

      touch iwks_mode

    6. Установите курсор на файл iwks_mode и нажмите клавишу F3.
      В зависимости от редакции Системы(Enterprise или Standard) на экране должно отобразится содержимое файла iwks_mode:

      • слово "iwall" (оно указывает на тип установки - TME All-in-one: TM+DB server) ;
      • слово "iwtms" (оно указывает на тип установки - TMS All-in-one: TM+DB server).
      Информация
      titleПримечание:

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

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

      2. нажмите F4.

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

      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=1
      gpgcheck=0

      [rhel-dvd-iwtm]
      name=DVD_IWTM
      baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/Linux/
      enabled=1
      gpgcheck=0

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

      Если вы хотите установить новую стандартную БКФ (старая БКФ и все внесенные в нее изменения будут утеряны), введите дополнительный текст:
      [rhel-dvd-iwtm-cfdb]
      name=DVD_IW-CFDB
      baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/cfdb/
      enabled=1
      gpgcheck=0

    15. Нажмите F2.
    16. В открывшемся окне подтвердите сохранение файла, нажав Save.
    17. Нажмите F10.
    18. Нажмите F3 и убедитесь в корректности содержимого файла, затем снова нажмите F3 для закрытия файла.

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

    24. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
      exit
    25. Введите команду для остановки сервисов сервера Traffic Monitor:
      service iwtm stop
    26. В зависимости от используемой СУБД введите команду для запуска процесса обновления пакетов:
      • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg (если используется СУБД Oracle)

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

    Предупреждение
    titleВажно!
    Включить выборку
    Объединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnewОбъединение конфигурационных файлов .conf, .cfg и .lua с файлами .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew
    nopaneltrue
    Информация
    titleПримечание:

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

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

    Начнется процесс обновления схемы данных. Это может занять некоторое время.

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

    su - root
  • Введите пароль пользователя root, нажмите Enter.
  • Запустите остановленные службы: 

    service iwtm start
    service php-fpm start
    service nagios start
  • Введите команду для перезагрузки сервера:
    reboot
  • Дождитесь загрузки сервера и повторите шаги 2 и 3 данной инструкции для входа в консоль.
  • Введите команду для проверки запуска процессов:
    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 "Все-в-одном" (All-in-one) завершено. Если в Системе есть другие серверы или подсистемы, подлежащие обновлению, воспользуйтесь инструкциями данного раздела.

    Sv translation
    languageen

    To update the System, you need to connect kickstart. Packages required for update are installed from this disk.

    1. In any partition of a hard drive, create a directory and mount the CD:
      mkdir -p /mnt/rhel-dvd && mount /dev/cdrom /mnt/rhel-dvd
    2. In the /etc/yum.repos.d directory, create a rhel-dvd.repo file (this file is required for specifying paths to update packages).
    3. Open the rhel-dvd.repo file for editing and insert the following text:

      [rhel-dvd]
      name=Red Hat Enterprise Linux $releasever - $basearch - DVD
      baseurl=file:///mnt/rhel-dvd/
      enabled=1
      gpgcheck=0

      [rhel-dvd-iwtm]
      name=Red Hat Enterprise Linux $releasever - $basearch - DVD
      baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/Linux
      enabled=1
      gpgcheck=0

    4. Save changes in the  rhel-dvd.repo.
    5. Clean up the package manager cash:
      yum clean all
    6. Delete the iwtm-tmcap:

      rpm -e --nodeps iwtm-tmcap

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

      Otherwise the tmcap.ko cernel module can be deleted during the update process and reinstalling of the iwtm-tmcap.

      When updating a database server, deleting the iwtm-tmcap is not required.

    7. Install kernel-headers of the actual kernel version:

      yum install kernel-headers

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

      If no changes have been made to kernel-headers after installation of the System, skip this step.

    8. Stop all iwtm services:
      service iwtm stop
    9. Install the iwtm-tmcap:

      yum install iwtm-tmcap

    10. Run packages update process:
      • if you run Oracle DBMS, use command yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg

      • if you run PostgreSQL DBMS, use command yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle
      Image Removed
    11. Check if there are new versions of configuration files with conf.rpmnew extention in the directory /opt/iw/tm5/etc/.
      • If yes, align them with the old configuration files.
    12. Check if there are new versions of Nagios configuration files with cfg.rpmnew extention in the directory /etc/nagios/iwmon.
      • If yes, align them with the old configuration files.

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

        Value of parameter Port in /opt/iw/tm5/etc/postgresql.conf  must always be equal to 5433.

    13. If the config_manager.confconfiguration file has been modified in the previous version, then copy the settings from the Serman section of the config_manager.conf.rpmsave file to the Serman section of the agent.conf. Both files are located in the /opt/iw/tm5/etc.
    14. Check /opt/iw/tm5/etc/scripts/ catalogue for .lua.rpmnew files:
      • If yes, align them with the old configuration files.
      Предупреждение
      titleWarning!

      After update, please check, whether all services on one or several servers are running: service iwtm status.

      Services on server with iw_serman and iw_bookworm must be started firstЕсли в Системе используется СУБД Oracle, выполните следующие действия:
      1. Введите команду для остановки СУБД Oracle:
        service oracle stop
      2. Введите команду для переключения на нужного пользователя:
        su - oracle
      3. Введите команду для получения списка установленных в Системе патчей:
        /u01/app/oracle/product/db_1/OPatch/opatch lsinventory | grep "Patch" | grep "applied" Image Added

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

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

        Image Added

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

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

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

        1. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
          exit
        2. Введите команду для извлечения патча:
          unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/
        3. После распаковки Система предложит нажать любую клавишу для продолжения: Image Added
        4. Нажмите любую клавишу для продолжения.
        5. Введите команду для перехода в нужную директорию:
          cd /tmp/12345678/
        6. Введите команду для установки патча:
          /u01/app/oracle/product/db_1/OPatch/opatch napply -silent -skip_subset -skip_duplicate

          Когда патч установится, на экран будет выведено сообщение: Image Added

        7. Нажмите любую клавишу для продолжения.
        8. Введите команды для удаления более ненужных файлов:
          cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml
      6. если файловый менеджер Midnight Commander работает, для выхода (требуется для лучшего контроля выполнения команд) введите команду:
        exit
      7. введите команду для переключения обратно на пользователя root:
        logout
      8. введите команду для запуска СУБД Oracle:
        service oracle start
    15. В зависимости от используемой СУБД введите команду для запуска процесса обновления пакетов:
      • yum upgrade --exclude=iwtm-rtl-pg,iwtm-siem-pg (если используется СУБД Oracle)

      • yum upgrade --exclude=iwtm-rtl-oracle,iwtm-siem-oracle (если используется СУБД PostgreSQL)
    16. Перед загрузкой нужных для установки пакетов будет выведен запрос вида Image Added. Для продолжения наберите Y на клавиатуре и нажмите Enter.
      Начнется скачивание пакетов из репозитория, а затем - установка пакетов. Это может занять некоторое время.
      Image Added
    17. Снова введите команду для вызова файлового менеджера:
      mc
    18. Если во время использования Системы в конфигурационные файлы с расширением .conf вносились изменения, перейдите в директории /opt/iw/tm5/etc и /etc/nginx и проверьте наличие файлов с расширением conf.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами (см. статью "Объединение файлов .conf и .conf.rpmnew").

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

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

      Включить выборку
      Объединение файлов .conf и .conf.rpmnew
      Объединение файлов .conf и .conf.rpmnew
      nopaneltrue

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

    20. Если во время использования Системы в файлы сценариев LUA (файлы с расширением .lua) вносились изменения, перейдите в директорию /opt/iw/tm5/etc/scripts/ и проверьте наличие файлов с расширением .lua.rpmnew. Если такие файлы есть, их нужно корректно объединить с конфигурационными файлами (см. статью "Объединение файлов .conf и .conf.rpmnew").

    21. В зависимости от используемой СУБД перейдите в директорию:
      • /opt/iw/tm5/csw/oracle (если используется СУБД Oracle);
      • /opt/iw/tm5/csw/postgres (если используется СУБД PostgreSQL).
    22. Выделите файл database.conf.
      Image Added
    23. Нажмите F3.
    24. Убедитесь, что для параметра \set schema_version указана версия, до которой происходит обновление. Если указана старая версия, повторите шаги 27 - 36.
    25. Нажмите F3.
    26. Для выхода из файлового менеджера (требуется для лучшего контроля выполнения команд) введите команду:
      exit
    27. Последовательно введите команды для остановки служб:
      service iwtm stop
      service php-fpm stop
      service nagios stop

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

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

    28. Выполните перезапуск службы pgagent (если в Системе используется СУБД PostgreSQL):
      service pgagent-9.4 restart
    29. В зависимости от используемой СУБД введите команду для переключения на нужного пользователя:
      • su - oracle - для переключения на пользователя oracle (если в Системе используется СУБД Oracle)
      • su - postgres - для переключения на пользователя postgres (если в Системе используется СУБД PostgreSQL)
    30. В зависимости от используемой СУБД введите команду для перехода в нужную директорию:
      • cd /opt/iw/tm5/csw/oracle - (если в Системе используется СУБД Oracle)
      • cd /opt/iw/tm5/csw/postgres - (если в Системе используется СУБД PostgreSQL)
    31. Введите команду для запуска скрипта (сценария) обновления БД:
      ./update.sh

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

      Image Added
    32. Введите команду для очистки кеша:


      redis-cli flushall
    33. Введите команду для переключения обратно на пользователя root:

      logout

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

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

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

    Обновление сервера Traffic Monitor "Все-в-одном" (All-in-one) завершено. Если в Системе есть другие серверы или подсистемы, подлежащие обновлению, воспользуйтесь инструкциями данного раздела.

    Информация
    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

    To update System, perform the following actions:

    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.
      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.
      Depending on the System edition (Enterprise or Standard) the screen will display the content of iwks_mode file:
      • "iwall" word (indicates that the installation type is TME All-in-one: TM+DB server)  Image Added ;
      • "iwtms" word (indicates that the installation type is TMS All-in-one: TM+DB server) Image Added .

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

        If the file content is different:

        1. press F3 again.

        2. press F4.

        3. in the window that opens, delete all characters and depending on the System edition, enter iwall or iwtms

        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. Enter the command:
      mkdir -p /mnt/rhel-dvd 
      The /mnt/rhel-dvd directory will be created.
    9. Make sure that a distribution disk with InfoWatch Traffic Monitor is connected to the server (see the "Обновление Системы" article, step 2).
    10. 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 the /dev/cdrom section will be connected as a repository in the /mnt/rhel-dvd directory.

    11. 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.
    12. 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 Added

      Информация
      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


    13. Position the cursor on the rhel-dvd.repo file and press F4.
    14. In the window that opens, delete all characters and enter the following text:

      [rhel-dvd]
      name=Red Hat Enterprise Linux $releasever - $basearch - DVD
      baseurl=file:///mnt/rhel-dvd/
      enabled=1
      gpgcheck=0

      [rhel-dvd-iwtm]
      name=DVD_IWTM
      baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/Linux/
      enabled=1
      gpgcheck=0

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

      If you want to install a new standard classification base (the old classification base and changes made to it will be lost), enter an additional text:
      [rhel-dvd-iwtm-cfdb]  
      name=DVD_IW-CFDB  
      baseurl=file:///mnt/rhel-dvd/infowatch/traffic-monitor/cfdb/  
      enabled=1  
      gpgcheck=0

    15. Press F2.
    16. In the window that opens, confirm the file saving by clicking Save.
    17. Press F10.
    18. Press F3 and make sure that the file content is correct, then press F3 again to close the file.

    19. To exit the file manager (is required to better control command execution), enter the command:
      exit
    20. Enter the command to clean the package manager cache:
      yum clean all
    21. 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
    22. Enter the command to call the file manager again:
      mc
    23. 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.

    24. To exit the file manager (is required to better control command execution), enter the command:
      exit
    25. To stop services of Traffic Monitor server, enter the command:
      service iwtm stop
    26. If Oracle DBMS is used in the System, do the following actions:
      1. Enter the command to stop DBMS Oracle:
        service oracle stop
      2. Enter the command to switch to the desired 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 screen will display the list of patches installed in the System. Write down or remember all numbers specified after the word "Patch" (the patch number can also be the first eight digits after the letter "p". For example, for p19972569_112040_Linux-x86-64.zip the patch number is 19972569). There numbers are required to compare installed patches and patches that are needed for the update.
      4. Enter the command to call the file manager again:
        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 patch numbers installed in the System (which you have written down or remembered).
        Image Added

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

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

        To install the patch, follow these steps (the example below is for a patch with the number 12345678 - p12345678_112040_Linux-x86-64.zip):

        1. To exit the file manager (is required to better control command execution), enter the command:
          exit
        2. To extract the patch, enter the command:
          unzip /mnt/rhel-dvd/infowatch/extras/OraclePatches/p12345678_112040_Linux-x86-64.zip -d /tmp/
        3. When the patch is unpacked, the System will prompt you to press any key to continue:  Image Added
        4. Press any key to continue.
        5. To go to the required directory, enter the command:
          cd /tmp/12345678/
        6. Enter the command to install the patch:
          /u01/app/oracle/product/db_1/OPatch/opatch napply -silent -skip_subset -skip_duplicate

          When the patch is installed, the screen will display the message:  Image Added

        7. Press any key to continue.
        8. To delete files that are no more needed, enter the command:
          cd /tmp/ && rm -rf /tmp/12345678/ && rm -f /tmp/PatchSearch.xml


      6. If Midnight Commander file manager is running, exit it (is required to better control command execution) with the command:
        exit
      7. to switch back to the root user, enter the command:
        logout
      8. to start Oracle DBMS, enter the command:
        service oracle start
    27. Depending on the DBMS, enter the command to start the process of updating packages:
      • 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)
    28. Before loading files required for installation, the screen will display a request like this  Image Added . 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 Added
    29. Enter the command to call the file manager:
      mc
    30. 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").

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

      If PostgreSQL DBMS is used in the System, it is necessary to take the following steps when updating Traffic Monitor version 6.0 or 6.1 to 6.5 and higher:

      1. Go to the /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 Added
      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 Added

        Информация
        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 Added

      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 Added


    31. 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").
    32. 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").
    33. 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).
    34. Select the database.conf file.
      Image Added
    35. Press F3.
    36. Make sure that for the \set schema_version parameter, a version to which you are updating the System is specified. If an old version is specified, repeat steps 27 - 36.
    37. Press F3.
    38. To exit the file manager (is required to better control command execution), enter the command:
      exit
    39. To stop services, enter the commands one by one:
      service iwtm stop
      service php-fpm stop
      service nagios 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 .

    40. 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)
    41. 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)
    42. Enter the command to start the database update script:
      ./update.sh 

      The process of updating the database scheme will start. It may take some time. When the update is complete, the screen will display an information message and a command prompt:


      Image Added
    43. Enter the command to clear the cache:
      redis-cli flushall
    44. To switch back to the root user, enter the command:
      logout
    45. Start the stopped services: 
      service iwtm start
      service php-fpm start
      service nagios start
    46. Enter the command to restart the server:
      reboot
    47. Wait until the server is started and repeat steps 2 and 3 of this instruction to log in the console.
    48. Enter the command to check if the processes are started:
      service iwtm status 
      The screen will display the list of processes and their status. Generally, iw_qmover_client and iw_qmover_server services are stopped and all other services are started. For iw_qmover_client and iw_qmover_server services, the lines should end with "is stopped (disabled)..." and for all other services, the lines should end with "is running...":
      Image Added

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

      If in the System, the Crawler subsystem is installed you need to start services of this subsystem (on Crawler server). This is done on the server where the subsystem is installed with Windows standard tools:  Start  -  Control Panel  -  Administrative Tools  -  Services , then select the service in the list and click   Start service .

    Updating the Traffic Monitor All-in-one server is complete. If the System includes other servers or subsystems to be updated, follow instructions in this section.

    Информация
    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 done with browser standard tools.