We recently finished a POC for dynatrace (managed mode and server was on AWS). The managed server has been shutdown and deleted from AWS, but we were not able to disable the monitored hosts in the dynatrace interface before shutdown. So, what is the proper way to uninstall oneagent from the production linux servers?
Should the application services (like apache, tomcat, etc) be shutdown first, and then run the unsinstall script?
Or running the uninstall script will be enough, and the end user application won't be affected?
Thanks in advance!
Solved! Go to Solution.
To fully uninstall, you simply need to run the uninstall.sh script, and then restart any instrumented processes to remove any remnants of injected code. It shouldn't be necessary to shut down the application services before uninstalling, as any injected Dynatrace code will simply become dormant until it's removed on the next restart. You can find the full uninstallation instructions here.
As Jordan mentioned, you don't need to shut down any services first, simply running the uninstall.sh script is fine. This will actually stop those services as part of the uninstall anyway.