# what happens if you clone a system with a oneagent active\>

**URL:** <https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074>\
**Category:** Open Q&A\
**Tags:** account-management\
**Created:** [January 11, 2019, 12:51pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074 "2019-01-11T12:51:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [January 11, 2019, 12:51pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/1 "2019-01-11T12:51:28Z")

</div>

Hello

When you clone a system where an agent is installed, does this mean the cloned system’s agent will be also be visible in dynatrace?

KR Henk

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [January 11, 2019, 1:02pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/2 "2019-01-11T13:02:40Z")

</div>

Hi,

Theoretically, this should work because OneAgent has the configuration of how to connect to the Dynatrace server. The name should change after changing hostname. However, I do not have 100% certainty.

R.

---

<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:** [January 11, 2019, 1:06pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/3 "2019-01-11T13:06:15Z")

</div>

Preferred way is to uninstall oneagent on the cloned host and delete the oneagent config directory or at least the ruxithost.id so things won’t mess up.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [January 11, 2019, 1:10pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/4 "2019-01-11T13:10:08Z")

</div>

Of course, that should be done. Henk&nbsp;asked if it is possible 🙂

R.

---

<div class="post-metadata">

**Author:** ![piotr\_szczepani](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/piotr_szczepani/32/34462_2.png) [@piotr\_szczepani](https://community.dynatrace.com/u/piotr_szczepani)\
**Post date:** [January 15, 2019, 3:05pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/5 "2019-01-15T15:05:53Z")

</div>

Hi Henk,

Depending on how this system was  
cloned there are 2 scenarios.

**(Cold cloning)** Machine  
was cloned while not running – in this case when you start new machine our OneAgent  
will detect that host have a new MAC address and will generate new identifier  
(OSid) and will be detected as a new host in Dynatrace

**(Hot cloning)** Machine  
was cloned while running – in this case you would have to restart OneAgent and  
all deep monitored processes on new host to make sure that it is identified as  
new, otherwise data from both hosts might be combined in to one.

If you have any further questions, please let me know.

---

<div class="post-metadata">

**Author:** ![dvalverde](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@dvalverde](https://community.dynatrace.com/u/dvalverde)\
**Post date:** [September 4, 2024, 11:37pm UTC](https://community.dynatrace.com/t/what-happens-if-you-clone-a-system-with-a-oneagent-active/19074/6 "2024-09-04T23:37:21Z")

</div>

hi guys.i would like to know if this cloning is currently possible as to be used like vm creation Template where the OneAgent is previously pre-installed and once the new VM takes the new name and new ip the One agent will created a new HOST-ID and it will be displayed in the dynatrace host panel as a new host??
