Transferring your Console to a new server


If you want to move your Console to a new server, please follow these steps:

On your OLD machine:

  1. Stop all your Sensors from Console, under Configuration » Components.
  2. Stop WANsupervisor:
    service WANsupervisor stop
  3. Stop the mysql database:
    • CentOS / Red Hat:
      service mysqld stop
    • Debian / Ubuntu:
      service mysql stop

On your NEW machine:

  1. Install the packages and their dependencies.
  2. Stop WANsupervisor if it's running:
    service WANsupervisor stop
  3. Stop the mysql database:
    • CentOS / Red Hat:
      service mysqld stop
    • Debian / Ubuntu:
      service mysql stop
  4. In case you have a previously installed Console set up on this machine, make a backup of those configurations:
    cd /var/lib/mysql/andrisoft
    mv -v andrisoft andrisoft.backup
  5. Copy the database from your OLD machine to the NEW machine:
    scp -r user@old_machine:/var/lib/mysql/andrisoft /var/lib/mysql/
  6. Change the ownership of the copied files:
    chwon -R mysql:mysql /var/lib/mysql/andrisoft
  7. Start mysql:
    • CentOS / Red Hat:
      service mysqld start
    • Debian / Ubuntu:
      service mysql start
  8. In Console, go to Configuration » Servers and change the IP Address for each server
  9. Start WANsupervisor:
    service WANsupervisor start

Restore configurations:

In case something went wrong, and you need to restore the configurations on the NEW machine:
  1. Stop all the Sensors, mysql and WANsupervisor
  2. Remove the faulty andrisoft database:
    rm -rf /var/lib/mysql/andrisoft
  3. Rename the backup folder as the original andrisoft database:
    cd /var/lib/mysql/andrisoft
    mv -v andrisoft.backup andrisoft
  4. Change the ownership of the new database:
    chown -R mysql:mysql andrisoft
  5. Start mysql and WANsupervisor.

Copy Graph Files, Packet Dumps, Flow Data:

You can manually copy each of the directories /opt/andrisoft/graphs, /opt/andrisoft/flows, /opt/andrisoft/dumps and their contents to the new server, as long as the ownership of these directories/files is preserved.



Author
Andrisoft Team
Date Created
2014-11-27 11:11:08
Date Updated
2017-11-30 00:01:05
Views
3239