# Is there a way/command to 'force' an OneAgent to learn if there's any new Active Gate connected?

**URL:** <https://community.dynatrace.com/t/is-there-a-way-command-to-force-an-oneagent-to-learn-if-theres-any-new-active-gate-connected/22600>\
**Category:** Open Q&A\
**Tags:** activegate, oneagent\
**Created:** [November 21, 2019, 3:52pm UTC](https://community.dynatrace.com/t/is-there-a-way-command-to-force-an-oneagent-to-learn-if-theres-any-new-active-gate-connected/22600 "2019-11-21T15:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [November 21, 2019, 3:52pm UTC](https://community.dynatrace.com/t/is-there-a-way-command-to-force-an-oneagent-to-learn-if-theres-any-new-active-gate-connected/22600/1 "2019-11-21T15:52:19Z")

</div>

The reason for it is that, I want to make sure the OneAgent immediately know there is a new Active Gate deployed, instead of waiting for it to update periodically (because we don’t really know how many minutes exactly it is)

Best Regards,

Wai Keat

---

<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:** [November 21, 2019, 5:08pm UTC](https://community.dynatrace.com/t/is-there-a-way-command-to-force-an-oneagent-to-learn-if-theres-any-new-active-gate-connected/22600/2 "2019-11-21T17:08:18Z")

</div>

No there is not, maybe reconnecting the agent will make this faster, but I see changes in the list of endpoints (serverAddress) updated very quicky - usually within a minute.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 22, 2019, 7:44am UTC](https://community.dynatrace.com/t/is-there-a-way-command-to-force-an-oneagent-to-learn-if-theres-any-new-active-gate-connected/22600/3 "2019-11-22T07:44:31Z")

</div>

Remember that even if Agent will know about AG it does not have to use it as connection point. It can still using direct way until next restart, or problems with connection that is using. In general I mean that information about new AG is not mandatory signal to change the way that data are streamed to server instantly.

Sebastian
