How do I migrate Applications Manager installed in one machine to a different machine?
Migrating Professional Edition of Applications Manager
- In order to migrate Applications Manager and its contents to a new machine, you need to ensure that the version of Applications Manager you install in the new machine matches that of the old machine. (To know details about the build number in your old machine, navigate to Settings tab -> Support-> Installation Information from the Applications Manager console).
- Perform the installation as per the guidelines. Then, start the Applications Manager service in the new machine. Verify if all default monitors exist, and then stop the service.
- Before migrating, stop Applications Manager in your old machine:
- For Windows:
Open Command prompt with administrator permission.
Navigate to <ApplicationsManager_Home> folder.
Run the command: shutdownApplicationsManager.bat -force. - For Linux:
Open Command prompt with administrator permission.
Navigate to <ApplicationsManager_Home> folder.
Run the command: sh shutdownApplicationsManager.sh -force
- For Applications Manager with PostgreSQL backend, take a backup of the database in your old machine & restore it in the new machine using the steps given here.
- For Applications Manager with MS SQL backend, you can provide the previously installed MS SQL database details when prompted during the new installation. You can find the details of your previously-installed MS SQL database in the database_params.conf file located under the <ApplicationsManager_Home>/working/conf/ directory. Here is a sample screenshot of the file's contents:
where,
localhost represents the name of the host in which MSSQL db is installed,
1433 represents the port number, and
AMDB represents the name of the MS SQL database. - If you had recently applied a patch to rectify any issue in Applications Manager, we recommend that you move the patch files in working/classes/com and working/WEB-INF/classes directory into the same path in the new installation.
- To move the configuration files, mibs and ssh-keys, execute the BackupConfig.bat (sh) file in the old server and RestoreConfig.bat (sh) file in the new server. [The files will be present under <Applications Manager Home>/bin directory. ]
- Start the new Applications Manager service.
For windows:
Open services.msc.
Start the ManageEngine Applications Manager service.
For Linux:
Open the terminal.
Navigate to the directory in which you've installed Applications Manager and run the below command:
nohup sh startApplicationsManager.sh &
Note: If you're using Applications Manager v16140 and above, run the below command instead:
sh startApplicationsManager.sh -d
- After starting Applications Manager, apply your original license file.
Migrating Enterprise Edition of Applications Manager
Migrating a Managed Server:
- To migrate a Managed Server, first install APM as a professional edition in your new machine and delete the <AppManager_Home>/conf/install.txt file and add the below mentioned changes in AMServer.properties file:
- Open AMServer.properties file under <AppManager_Home>/conf/ directory in your old Managed server.
- Copy the below parameters & add them to the AMServer.properties file in your new installation.
am.server.type=MAS
am.server.startresidrange=<serverid x 10000000> (For example in first Managed server startresidrange will be 10000000 , in second Managed server startresidrange will be 20000000 & so on)
am.adminserver.host=<Admin Server HostName>
am.adminserver.port=<Admin Server SSL Port> - If you had recently applied a patch to rectify any issue in Applications Manager, we recommend that you move the patch files in working/classes/com and working/WEB-INF/classes directory into the same path in the new installation.
- Once you complete the above mentioned steps, start the Applications Manager service in the new machine.
- Open APM's admin console and click on the Managed Server tab. A list of all Managed servers will be displayed. Click on edit option for the Managed server that you are migrating to a new machine and update the hostname and IP address of the same.
Migrating an Admin Server:
- To migrate an Admin Server, first install Applications Manager as a Admin edition in your new machine.
- Follow steps 4, 5, 6 mentioned in the ''Migrating Professional Edition of Applications Manager'' section given above.
NOTES:
- There should be no date and time difference between the two hosts as it may affect reports & alarms.
- Migration will work for moving data between:
- Linux to Linux
- Windows to Windows
- Linux to Windows
- Windows to Linux (only with PostgreSQL backend)
Migrating configuration data
In case you wish to migrate only the configuration files and tables from the Applications Manager installed machine, you can do so by executing the appropriate commands given below under <Applications Manager Home>/bin directory from command terminal:
- Execute BackupPGSQL.bat/.sh --confiles command to take config file backup.
- Execute BackupPGSQL.bat/.sh --configtables command to take config table backup.
- Restore the backups by executing below command by replacing <backupFile> file with configuration files backup:
RestorePGSQL.bat/sh <backupFile> - Once the restoration is complete, execute the RestorePGSQL.bat/.sh command with configuration tables backup file:
RestorePGSQL.bat/sh <backupFile>
For more information on performing backup and restore of specific data,
refer here.
Note: In Enterprise Edition, backup of report or configuration data (like --reports, --configtables, --exclude-reports, --exclude-raw) taken from one server should not be restored in another server.
New to ADSelfService Plus?
Related Articles
Connecting to Applications Manager's bundled database
Before you connect to Applications Manager's back-end database, it is important that you take a backup of the Applications Manager directory so that you don't make any changes/accidentally modify the database. Identify which database Applications ...
Applications Manager default tomcat is down
If your Tomcat Monitor is down, it could probably be due to changes in Hostname/IP address of the machine in which Applications Manager is installed. You can verify the same using the steps given below: Navigate to ...
Self monitor Applications Manager using Real User Monitoring
We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
Unable to upgrade Applications Manager - MySQL Deprecation
Problem: You encounter the following error while trying to install service pack for Applications Manager v16140 and above: Reason: This error occurs because MySQL backend database has been deprecated in Applications Manager. Solution: You have to ...
How do I migrate the MS SQL DB used by Applications Manager to another MS SQL server?
Follow the steps given below to migrate MS SQL database of Applications Manager to another MS SQL server: 1. Shutdown Applications Manager completely before the database migration. a. Stop Applications Manager service. b. Shutdown Applications ...