# How can one re-configure the OneAgent

**URL:** <https://community.dynatrace.com/t/how-can-one-re-configure-the-oneagent/10281>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [January 12, 2018, 1:28pm UTC](https://community.dynatrace.com/t/how-can-one-re-configure-the-oneagent/10281 "2018-01-12T13:28:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [January 12, 2018, 1:28pm UTC](https://community.dynatrace.com/t/how-can-one-re-configure-the-oneagent/10281/1 "2018-01-12T13:28:44Z")

</div>

What is the best approach to reconfigure a already installed OneAgent without re-installation

Changing the typical parameters that you would set during installation:

1. TOKEN
2. TENANT\_TOKEN
3. LOG access
4. INFA\_ONLY

---

<div class="post-metadata">

**Author:** ![joel\_stuart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joel_stuart/32/3581_2.png) [@joel\_stuart](https://community.dynatrace.com/u/joel_stuart)\
**Post date:** [January 15, 2018, 6:05am UTC](https://community.dynatrace.com/t/how-can-one-re-configure-the-oneagent/10281/2 "2018-01-15T06:05:24Z")

</div>

Hi Reinhard,

I would offer that a re-installation would be the safer, supported (and probably quicker) option to make the above changes.

But otherwise, in a windows environment, the first three parameters can be found in “../Program Files/Dynatrace/oneagent/conf/ruxitagent.conf”

For Linux “/opt/dynatrace/oneagent/conf/ruxitagent.conf” or similar

Digging around, I can’t find where the INFRA\_ONLY flag is stored. I did however dig up this answer which talks about making those changes within Dynatrace (needs to be enabled globally & then can be set per host).  
[https://community.dynatrace.com/questions/191041/how…](https://answers.dynatrace.com/questions/191041/how-to-enable-only-infrastructure-monitoring-and-d.html#)

Hope that’s helpful.

Joel

---

<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:** [January 18, 2022, 1:37pm UTC](https://community.dynatrace.com/t/how-can-one-re-configure-the-oneagent/10281/3 "2022-01-18T13:37:43Z")

</div>

Currently, the best approach would probably be to use oneagentctl (see [OneAgent configuration via command-line interface — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/oneagentctl)).
