05 Mar 2018 03:33 PM - last edited on 11 Mar 2021 04:21 PM by laima_vainina
Hi,
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!
Antonio V.
Solved! Go to Solution.
05 Mar 2018 04:32 PM
Hi Antonio,
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.
05 Mar 2018 06:59 PM
Hi Antonio,
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.
Regards,
Hayden
09 Mar 2018 11:12 AM
Hi,
Thank you very much.
Antonio V.