This article explains how to move a Controller from one folder to another.
These instructions assume the host has a simple Controller installation, with the database, Controller, reporting and embedded events service on the same host.
You can use these instructions with version 4.3 with the Controller installer, or with versions 4.4+ with Enterprise Console (EC). For versions 4.4+ using the EC, extra steps might be required in order to rediscover all services.
High Availability (HA) re-configuration needs additional assistance from the Systems Team.
Make sure none of the Controller's services are up and running.
Stop the Controller processes using the following instructions, depending on whether you’re working in Linux or Windows OS.
$ <controller-dir>/bin/controller.sh stop-events-service
$ ps -ef| grep -i appd | grep -v grep | grep -v ssh
The output of the last command should not have running processes related to the controller installation.
Move the Controller from folder A to folder B using the following instructions, depending on whether you’re working in Linux or Windows OS.
$ cp -r <controller-source-dir> <controller-target-dir>
Remove any old references for AppD related services
robocopy Controller-Source-Dir controller-target-dir /e /copyall
Delete and add services as follow:
sc delete "AppDynamics Controller Application Server"
sc delete "AppDynamics Database"
sc delete "AppDynamics Events Service API Store XXXXX"
sc delete "appdynamicsreportingservice.exe"
sc create "AppDynamics Controller Application Server"
domains\domain1\bin\AppDynamicsDomain1Service.exe" DisplayName= "AppDynamics Controller Application Server" start= auto
sc description "AppDynamics Controller Application Server
" "AppDynamics Application Server"
sc create "AppDynamics Database" binPath= "<controller-target-dir>\db\bin\mysqld.exe --defaults-file=\"<controller-target-dir>\db\db.cnf\" \"AppDynamics Database\"" DisplayName= "AppDynamics Database"
sc description "AppDynamics Database"
sc create "appdynamicsreportingservice.exe" binPath= "Controller-Target-Dir\reporting_service\reports\daemon\appdynamicsreportingservice.exe" DisplayName= "AppDynamics Reporting Service" start= auto
sc description "appdynamicsreportingservice.exe" "AppDynamics report generation service."
bin\events-service.exe service-install -p conf\events-service-api-store.properties --auto-start
Modify the following files with the new file path, as appropriate to your operating system.
Restart the Controller using the below process for your OS