20. Update & Backup
20.1. Update v3.a.b > v3.x.y
Connect to your server via SSH
Create a backup of the current version using the following command:
sudo cp -pr cs cs_backupChange to the cs directory
cd ./csDownload the latest Connectivity Suite console application. The credentials for repository are provided by NetModule.
curl -u cs-install ftp://ftp.netmodule.com/latest/cs-cmd -o cs-cmd --ssl-reqdRun the cs-cmd tool and select “update assistant”
./cs-cmd
20.2. Upgrade v2.6 > v3.x
Since v3.x is based on a different software architecture than v2.6, this is not only an update but also a migration.
Warning
In case any of the following steps fail we advice to snapshot the Virtual Machine where the Connectivity Suite is installed so that a roll back is possible.
Warning
To install and run the Connectivty Suite v3 you need to have an up to date Ubuntu 22.04 LTS/24.04 LTS or Debian 11/12 with Docker v20+ and the Docker Compose v2+ plugin installed. See Section 2.1.2 for details.
Warning
Routers with NRSW older than 4.3 will not be able to connect to a Connectivity Suite v3.x. Make sure to update the outdate Router Software before upgrading the Connectivity Suite.
Note
Direct migration from Connectivity Suite v2.6 to v3.x is supported up until Connectivity Suite v3.7.3. Upgrades from Connectivity Suite v2.6 to any newer version than v3.7.3 require a two-step upgrade. In this case, please reach out to support to get Connectivity Suite v3.7.3.
Note
The following steps assume that you have installed your CS v2.6 in your home directory under ~/cs. If this is not the case, please adjust the paths below accordingly.
Connect to your server via SSH
Download the Connectivity Suite Backup script
curl https://repo.netmodule.com/repository/cs/v2.6/scripts/export_cs_v2.py -o export_cs_v2.pyExport Connectivity Suite v2.6 data with the Backup script and note the location of the cs_export.zip file. You will need this later.
python ./export_cs_v2.pyChange to the ~/cs/docker-prod directory
cd ./cs/docker-prodStop the v2.6 instance
docker-compose downChange directory back to home
cd ~Rename the cs directory to cs_v2x
mv cs cs_v2xCreate new cs directory
mkdir csChange to new cs directory
cd ./csRun a ls command to make sure the directory is empty
lsDownload Connectivity Suite console application. The credentials for repository are provided by NetModule.
curl -u cs-install ftp://ftp.netmodule.com/latest/cs-cmd -o cs-cmd --ssl-reqdAdd execution permission to newly downloaded cs-cmd
sudo chmod +x ./cs-cmdRun the cs-cmd tool and select “v2.x migration assistant”
./cs-cmdThe requested path to the cs_export.zip was printed out at step 3 and is similar to
/home/ubuntu/cs_export.zipOptional: Remove v2.6
rm -rf ~/cs_v2x
Warning
When updating from v2.6 to v3.x, certain restrictions must be observed which are noted in chapter Section 20.2.1
20.2.1. Migration Notes
The migration to v3.x will not migrate the full data of v2.6. The following list shows the affected entities:
Replacement Devices
Devices which should replace an existing device and their replacement provisioning config will not be migrated. Make sure to finish all your device replacement jobs before you upgrade.
Provisioning Devices
Devices currently connected to the provisioning network will not be migrated. Make sure to move all devices to their tenant before you upgrade.
Logs
The plain-text logs will no be migrated.
Jobs
Jobs will not be migrated. Make sure that there are no open jobs before you migrate.
Provisioning Configurations
Already downloaded configurations from CS v2.6 will no longer work with CS v3.x.
Device metric data
Up to 6 months of online/offline device state changes are migrated, but only up to a maximum of 4’000’000 state changes in total, depending on which limit is reached first.