# Move AG from one cluster to another

**URL:** <https://community.dynatrace.com/t/move-ag-from-one-cluster-to-another/40308>\
**Category:** Dynatrace Managed\
**Tags:** activegate, dynatrace-managed, oneagent\
**Created:** [June 21, 2023, 10:37am UTC](https://community.dynatrace.com/t/move-ag-from-one-cluster-to-another/40308 "2023-06-21T10:37:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto\_ravo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/roberto_ravo/32/2129_2.png) [@roberto\_ravo](https://community.dynatrace.com/u/roberto_ravo)\
**Post date:** [June 21, 2023, 10:37am UTC](https://community.dynatrace.com/t/move-ag-from-one-cluster-to-another/40308/1 "2023-06-21T10:37:51Z")

</div>

Hi all!  
We need to move an installed Active Gate(with all the agents associated) from one Managed cluster to another Managed one. Which is the best way to do that? We need to reinstall all the components?

Thank you!  
Roberto

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [June 21, 2023, 3:59pm UTC](https://community.dynatrace.com/t/move-ag-from-one-cluster-to-another/40308/2 "2023-06-21T15:59:55Z")

</div>

Hello Roberto,

I think moving AG is not possible unless you will edit configuration files and auth files. I’d recommend install a fresh activegate for the new cluster and point all agents to the new endpoint using oneagent CLI

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 21, 2023, 4:17pm UTC](https://community.dynatrace.com/t/move-ag-from-one-cluster-to-another/40308/3 "2023-06-21T16:17:27Z")

</div>

Actually, if the host itself does not change, you can easily just uninstall the old ActiveGate and install a new one from the new environment on the same host.  
By an in-place reinstallation you shouldn’t need to point OneAgents to a new location and they will automatically try to connect to the new gateway. But OneAgents will need to have the token and environment ID updated anyway.
