Transferring your Console to a new server
To move your Console to a new server, follow the steps below.
The most recent version of this procedure is maintained in the User Guide, in the chapter Configuration » Servers » Transferring Console — check it when running a newer software version.
On the OLD machine
- Stop all components (Sensors, Filters, BGP Connectors) from Configuration » Components.
- Stop WANsupervisor:
service WANsupervisor stop
- Back up the database:
/opt/andrisoft/bin/WANmaintenance backup_db
On the NEW machine
- Install the software packages and their dependencies.
- If a Console was already running on this machine, stop all its components from Configuration » Components, stop WANsupervisor, and back up its configuration:
service WANsupervisor stop /opt/andrisoft/bin/WANmaintenance backup_db
- Copy the backup file from the OLD machine:
scp user@old_machine:/opt/andrisoft/tmp/wanguard_backup_from_xxxx-xx-xx.sql /root
- Restore the backup:
mysql -p andrisoft < /root/wanguard_backup_from_xxxx-xx-xx.sql
- Go to Configuration » Servers and change the IP address of each server.
- Update the configuration of the Sensors, Filters and BGP Connectors to reflect the interfaces and IP addresses of the new machine.
- Start WANsupervisor:
service WANsupervisor start
On every remote server that runs Sensors and/or Filters
- Update the software packages to the latest version, then execute:
/opt/andrisoft/bin/install_supervisor
When prompted, provide the new Console IP and database password. - Restart the WANsupervisor service:
service WANsupervisor restart
If something went wrong
To restore the initial configuration on the NEW machine:
- Stop all Sensors, then stop WANsupervisor:
service WANsupervisor stop
- Restore the initial database:
mysql -p andrisoft < /opt/andrisoft/tmp/wanguard_backup_from_xxxx-xx-xx.sql
- Start WANsupervisor, then start the Sensors:
service WANsupervisor start
Copy graph files, packet dumps and flow data
You can manually copy the directories /opt/andrisoft/graphs, /opt/andrisoft/flows and /opt/andrisoft/dumps to the new server, as long as the ownership of the directories and files is preserved. If you store graphs in InfluxDB, also copy its "andrisoft" database to the new server; if you store graphs or flows in ClickHouse, copy its "andrisoft" database as well.
AuthorAndrisoft Team
Date Created27 November 2014
Date Updated11 October 2023
Views23,364

