# removal of active gate

**URL:** <https://community.dynatrace.com/t/removal-of-active-gate/49615>\
**Category:** Open Q&A\
**Tags:** installation, activegate, oneagent\
**Created:** [January 8, 2025, 1:31pm UTC](https://community.dynatrace.com/t/removal-of-active-gate/49615 "2025-01-08T13:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [January 8, 2025, 1:31pm UTC](https://community.dynatrace.com/t/removal-of-active-gate/49615/1 "2025-01-08T13:31:21Z")

</div>

Hi Team, Need your help again 🙂

Question 1.

I have 2 servers where firewall ports are opened (9999) i have installed OneAgent on both server with setting up the network zone and set server active command.

Now issue is that if i am installing OneAgent with set server AG command then i am not getting data on Dynatrace.

If set server is not used, I am getting the data on Dynatrace as network zone have their own active gate.

Question&nbsp; 2.

I have installed one agent on 100+ servers with set server AG command and selected network zone setup,

But i want to remove the active gate as data is not coming on Dynatrace, only keep Network zone which have AG setup already.

I tried removing using below commands but getting error, how I can fix this?

oneagentctl.exe --set-server=“”

oneagentctl.exe --set-server=Default

---

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [January 8, 2025, 2:59pm UTC](https://community.dynatrace.com/t/removal-of-active-gate/49615/2 "2025-01-08T14:59:28Z")

</div>

[@Peter\_Youssef](https://community.dynatrace.com/user/51369)&nbsp;Need your Help 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [January 11, 2025, 10:12pm UTC](https://community.dynatrace.com/t/removal-of-active-gate/49615/3 "2025-01-11T22:12:40Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

Hoping my message finds you well.

Regarding the removal of the OneAgents configurations, PFA references for step by step guidance:

- [Customize OneAgent installation on Windows — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/windows-custom-installation)
- [Customize OneAgent installation on Linux — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/linux-custom-installation)
- [Install OneAgent on a server — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagent-installation-subsection)

According to the Server OS you will proceed with either of the attached docs.

Practically, you should:

1. Stop the OA Service on the target hosts.
2. Run the commands.
3. Restart the OA service again.

> **[Stop/restart OneAgent on Windows](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/windows/operation/stop-restart-oneagent-on-windows)**
>
> Learn how to stop and restart OneAgent on Windows.

> **[Stop/restart OneAgent on Linux](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/linux/operation/stop-restart-oneagent-on-linux)**
>
> Learn how to stop and restart OneAgent on Linux.

Also, through the UI directly you can proceed with the required changes through remote configuration management:

- [Remote configuration management of OneAgents and ActiveGates — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/remote-configuration)

BR,

Peter.
