Yes, we need same version of NetXMS to migrate db.
To summarize the possible ways:
- upgrade the "old" netxms first, then export the database and import into same version.
- install older NetXMS on the new system - for Debian/Ubuntu repository actually stores a number of previous versions, you can check with:
apt-cache policy netxms-server
Then you can install specific version, but you need to specify the version also for all netxms packages which server depends upon. E.g. for to install agent there's two more packages, for server there are a bit more:
apt install netxms-base=4.3.4-1 netxms-dbdrv-sqlite3=4.3.4-1 netxms-agent=4.3.4-1
- export file produced by nxdbmgr is actually sqlite database. So you can specify that file in netxmsd.conf:
DBDriver=sqlite.ddr
DBName=/path/to/your/file/netxms.db
and start the server. It will upgrade the sql file to the latest version, then you can stop the server and use nxdbmgr to perform import.
To summarize the possible ways:
- upgrade the "old" netxms first, then export the database and import into same version.
- install older NetXMS on the new system - for Debian/Ubuntu repository actually stores a number of previous versions, you can check with:
apt-cache policy netxms-server
Then you can install specific version, but you need to specify the version also for all netxms packages which server depends upon. E.g. for to install agent there's two more packages, for server there are a bit more:
apt install netxms-base=4.3.4-1 netxms-dbdrv-sqlite3=4.3.4-1 netxms-agent=4.3.4-1
- export file produced by nxdbmgr is actually sqlite database. So you can specify that file in netxmsd.conf:
DBDriver=sqlite.ddr
DBName=/path/to/your/file/netxms.db
and start the server. It will upgrade the sql file to the latest version, then you can stop the server and use nxdbmgr to perform import.