Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
12-02-2019
02:50 PM
- edited on
10-07-2020
09:39 PM
by
Claudia.Landiva
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.
Make sure none of the Controller's services are up and running.
<controller-dir>/logs
folder<controller-dir>/logs
folder
Stop the Controller processes using the following instructions, depending on whether you’re working in Linux or Windows OS.
$ <controller-dir>/bin/stopController.sh
$ <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"
binPath= <controller-target-dir>\appserver\glassfish\
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"
"MySQL 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."
cd <controller-target-dir>\events_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 relevant process below, according to your OS
$ <controller-dir>/bin/startController.sh
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form