# Is there a way to install OneAgent without starting monitoring

**URL:** <https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [April 3, 2018, 4:34pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662 "2018-04-03T16:34:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [April 3, 2018, 4:34pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/1 "2018-04-03T16:34:20Z")

</div>

Hello,

Is there a way to install OneAgent (via a command line) and not start the monitoring automatically?

The idea is to deploy the OneAgent on multiple servers and start the monitoring through the Dynatrace UI manually afterwards.

Thanks.

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [April 3, 2018, 5:54pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/2 "2018-04-03T17:54:27Z")

</div>

Gilles, Can you explain the use case on why you don’t want monitoring to start automatically? That might help best explain how to accomplish your goals.

---

<div class="post-metadata">

**Author:** ![hayden\_miedema](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hayden_miedema/32/29357_2.png) [@hayden\_miedema](https://community.dynatrace.com/u/hayden_miedema)\
**Post date:** [April 3, 2018, 8:12pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/3 "2018-04-03T20:12:07Z")

</div>

This is not currently available. What is the value/benefit of doing it this way rather than have monitoring enabled right away?

---

<div class="post-metadata">

**Author:** ![wallace\_abbott](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@wallace\_abbott](https://community.dynatrace.com/u/wallace_abbott)\
**Post date:** [April 3, 2018, 9:19pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/4 "2018-04-03T21:19:48Z")

</div>

There is not an option for this default behavior. After OneAgent deployment you can either locally shutdown the OneAgent process, or, you can go into the Dynatrace Platform GUI and turn it off via radio-button.

---

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [April 4, 2018, 9:49am UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/5 "2018-04-04T09:49:19Z")

</div>

Hi,

Thanks for your answers.

The idea is to deploy the agent on all of our customer production servers at once but activate the monitoring manually and progressively in order to check that everything is OK by group of servers/applications. The goal is to avoid a big impact on production environments if there was an issue.

---

<div class="post-metadata">

**Author:** ![andrew\_patterso](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andrew_patterso/32/32930_2.png) [@andrew\_patterso](https://community.dynatrace.com/u/andrew_patterso)\
**Post date:** [April 23, 2018, 1:58am UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/6 "2018-04-23T01:58:26Z")

</div>

This is a request that I’ve had recently too, where we’re wanting to install all of our agents in a “disabled” mode, then enable them a few at a time as we activate and test each application.

This would allow us to do an environment-wide roll-out without any risk of impacting applications (and/or allowing us to build it into the SOE), to automate activation (which is simpler to do as a change than installation) and automated environment promotion.

---

<div class="post-metadata">

**Author:** ![mike\_j\_corneliu](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mike\_j\_corneliu](https://community.dynatrace.com/u/mike_j_corneliu)\
**Post date:** [November 14, 2018, 7:54pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/7 "2018-11-14T19:54:05Z")

</div>

We could make use of this functionality as well. We’d potentially like to include the OneAgent software into our Windows builds, but we’d only need to collect data from a relatively small percentage of devices throughout the enterprise. This would give us the ability to enable the OneAgent software quickly if the need arises without having to install the software since it would already be installed while keeping host unit licenses utilized at a minimum.

---

<div class="post-metadata">

**Author:** ![jonno56](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonno56/32/13261_2.png) [@jonno56](https://community.dynatrace.com/u/jonno56)\
**Post date:** [November 16, 2018, 11:40am UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/8 "2018-11-16T11:40:00Z")

</div>

Hello - if you are using a deployment/automation tool to install the agent, you could run a closing command at the end to stop (or even disable) the windows service, or from chkconfig?

---

<div class="post-metadata">

**Author:** ![mike\_j\_corneliu](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mike\_j\_corneliu](https://community.dynatrace.com/u/mike_j_corneliu)\
**Post date:** [November 16, 2018, 12:25pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/9 "2018-11-16T12:25:05Z")

</div>

Hi Ben. Yes, I have considered that option but the problem there is that it could cause a spike in our license count immediately after installation. There is also the possibility that the command that is executed after the install fails to stop and disable the service.

---

<div class="post-metadata">

**Author:** ![Tomasz\_Gajger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_gajger/32/11712_2.png) [@Tomasz\_Gajger](https://community.dynatrace.com/u/Tomasz_Gajger)\
**Post date:** [November 16, 2018, 3:49pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/10 "2018-11-16T15:49:49Z")

</div>

Hi Mike,

I would suggest creating a product idea and describing your use case there.  
You can do it on this sub-forum: [https://community.dynatrace.com/spaces/483/view.html](https://community.dynatrace.com/spaces/483/view.html)

Regards,  
Tomasz

---

<div class="post-metadata">

**Author:** ![rmeli](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rmeli](https://community.dynatrace.com/u/rmeli)\
**Post date:** [February 18, 2020, 7:26pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/11 "2020-02-18T19:26:37Z")

</div>

We also want to be able to do this. As someone else said, we have a build process that includes OneAgent but we don’t want to enable it as we don’t want to consume host units. This will help increase the use of the product throughout the enterprise. We can then decide when or if we want to enable it for either infrastructure or full stack monitoring.

---

<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:** [February 18, 2020, 7:41pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-install-oneagent-without-starting-monitoring/11662/12 "2020-02-18T19:41:09Z")

</div>

There is option right now. After installation of OneAgent you can use this endpoint:

> **[OneAgent monitoring configuration API - PUT configuration](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/oneagent-configuration/oneagent-on-host/oneagent-monitoring/put-monitoring-configuration)**
>
> Update the monitoring configuration of a OneAgent instance via the Dynatrace API.

In general agent after connection will start consume licenses after 5 minutes (as I remember). In such case you have some time between installation and monitoring disabling.

Sebastian
