# How to Check how many agents are reporting to one ActiveGate

**URL:** <https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049>\
**Category:** Open Q&A\
**Tags:** installation, activegate, oneagent\
**Created:** [October 20, 2021, 2:31pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049 "2021-10-20T14:31:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eswari](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Eswari](https://community.dynatrace.com/u/Eswari)\
**Post date:** [October 20, 2021, 2:31pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/1 "2021-10-20T14:31:28Z")

</div>

Hello Team ,

Instead&nbsp;of doing&nbsp;netstat on AG Server to check how many agents are reporting at that point of time to that ActiveGate Server.

Is it feasible to check how many DT one agents are reporting to particular ActiveGate from DT SaaS tenant/GUI ?

Thanks in Advance !!

[@amitbsht321](https://community.dynatrace.com/user/45298)

Regards,

Eswari

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [October 21, 2021, 6:34am UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/2 "2021-10-21T06:34:00Z")

</div>

Hi Eswari. In general you should not need to do or know this. Our support teams can see this if it ever is necessary in the course of a support ticket. ActiveGates are automatically HA, meaning if you have two and one goes down or is over-utilised, the agents will automatically failover to the second. In addition, OneAgents will periodically move between ActiveGates (within a zone [see below]).

However, it sounds like you might be interested in the network zones feature. This lets you segment your ActiveGates and OneAgents according to your requirements. For example, if you specify that an ActiveGate (AG) is in “zone1” then you can install OneAgents with a **--set-network-zone=zone1** flag. OneAgents in this zone will only talk to AGs in zone1.

To view your topology, go to _Manage \> Deployment Status \> Network Zones_

 ![adam_gardner_0-1634797919384.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/d/2de84d31b20f511853dd3a8ab10e251bbe715b71.png)

Further info on Network Zones is here:&nbsp;[Network zones — Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/network-zones/)

---

<div class="post-metadata">

**Author:** ![D\_Miller](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/d_miller/32/22229_2.png) [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Post date:** [October 21, 2021, 12:34pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/3 "2021-10-21T12:34:16Z")

</div>

Hello,

I’m rather puzzled by your statement:

_“In general you should not need to do or know this.”_

I’d hope that Dynatrace wouldn’t assume what their Users do or do not need to know. This information was fully accessible in AppMon and I also note that it has now recently been added&nbsp;&nbsp;as a new feature in the information the AGs display in the Deployment Status page.

There are a great many self-monitoring black holes in Dynatrace SaaS and all information&nbsp;should be shared to help improve the product.

---

<div class="post-metadata">

**Author:** ![roman\_z](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@roman\_z](https://community.dynatrace.com/u/roman_z)\
**Post date:** [October 21, 2021, 1:45pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/4 "2021-10-21T13:45:37Z")

</div>

Hello Eswari,

you could use REST API&nbsp;/api/v1/oneagents

there are fields currentActiveGateId and currentActiveIds (A list of ActiveGate IDs of ActiveGates to which OneAgent is currently connected).

ActiveGateId is represented as long and hex number. You should use&nbsp;currentActiveIds (hex number)

For example:

jq -r “.hosts[] | [.hostInfo.displayName,.currentActiveGateId,(.currentActiveGateIds | join(\”,\"))] | @tsv " oneagents.json

[d2j.ttt.com](http://d2j.ttt.com) 462588410 0x1b9289fa

ci.ambit.tempest.test 1443825187 0x560f0623

You could get list of yours active gates also from REST API -&nbsp;/api/v2/activeGates

ActiveGateId is in hex format.

jq -r ".activeGates[] | [.id,.hostname] | @csv " ag.json  
“0x560f0623”,“ci.ambit.tempest.test”

But the list does not contain Dynatrace active gates for SaaS deployment

Kind regards,

Roman

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 21, 2021, 3:22pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/5 "2021-10-21T15:22:46Z")

</div>

Yes, having this information, especially over time, might be interesting.

You’re probably concerned about traffic management, so you might use the new dsfm: metrics, that you can even put in a nice Dashboard:

 ![AntonioSousa_0-1634829585628.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6528493a289e9adf0794c2f7c4fd652d0ce9d194.png)

---

<div class="post-metadata">

**Author:** ![PedroDeodato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pedrodeodato/32/32284_2.png) [@PedroDeodato](https://community.dynatrace.com/u/PedroDeodato)\
**Post date:** [January 24, 2022, 3:41pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/6 "2022-01-24T15:41:54Z")

</div>

Hi,&nbsp;[@Eswari](https://community.dynatrace.com/user/45349)&nbsp;,

Your question is quite similar to&nbsp;[@jean\_louis\_lorm](https://community.dynatrace.com/user/6132)’s [Product Idea](https://community.dynatrace.com/post/179215), so I’ll update you as well 🙂

What you’re looking for is currently possible! 😄

I described it in detail on this “Tips and Tricks” post, so feel free to check it out:

[https://community.dynatrace.com/t5/Dynatrace-tips/List-of-Hosts-connected-to-an-ActiveGate/td-p/179214](https://community.dynatrace.com/topic/179214)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [January 24, 2022, 4:10pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/7 "2022-01-24T16:10:55Z")

</div>

This is possible now using API too:

> **[ActiveGate API - GET all ActiveGates](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/activegates/activegate-info/get-all)**
>
> List all ActiveGates currently or recently connected to the environment.

---

<div class="post-metadata">

**Author:** ![leif\_ericksen](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@leif\_ericksen](https://community.dynatrace.com/u/leif_ericksen)\
**Post date:** [April 11, 2023, 7:05pm UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/8 "2023-04-11T19:05:08Z")

</div>

I am 100% in agreement with the statement&nbsp;_“In general you should not need to do or know this.”_

Maybe we need this for change control? Maybe we need this because we are trying clean/reorganize our environments because multiple hands have been in the environment. There are reasons to know what is going on despite what Dynatrace may happen to say.&nbsp; Just consider that some food for thought.

---

<div class="post-metadata">

**Author:** ![ben\_wrightson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ben_wrightson/32/34776_2.png) [@ben\_wrightson](https://community.dynatrace.com/u/ben_wrightson)\
**Post date:** [April 13, 2023, 11:20am UTC](https://community.dynatrace.com/t/how-to-check-how-many-agents-are-reporting-to-one-activegate/33049/9 "2023-04-13T11:20:09Z")

</div>

Have you seen this tip? It addresses your use case exactly:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-tips/List-of-Hosts-connected-to-an-ActiveGate/td-p/179214](https://community.dynatrace.com/topic/179214)
