# Where does Dynatrace put the hostgroup parameter for the oneAgent install?

**URL:** <https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [June 1, 2024, 9:49am UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867 "2024-06-01T09:49:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 1, 2024, 9:49am UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867/1 "2024-06-01T09:49:05Z")

</div>

Hello all,

When installing a oneAgent, you can select the hostgroup.

 ![henk_stobbe_0-1717235131662.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/9/5914dd572d424f83f213736b4515eb68cbace865.png)

I know you can overrule this while installing, but my simple question is:

Where does Dynatrace put this param, I can not find it so it must be in the generated exe?

KR Henk

---

<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:** [June 1, 2024, 12:04pm UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867/2 "2024-06-01T12:04:41Z")

</div>

[@henk\_stobbe](https://community.dynatrace.com/user/11427),

It is not in the installer. It’s in the command line parameters when you install. The parameter is “set-host-group”, and in Linux it appears like the following:

- /bin/sh Dynatrace-OneAgent-Linux-1.291.107.20240517-125257.sh --set-monitoring-mode=fullstack --set-app-log-content-access=true --set-host-group=hg\_test

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 1, 2024, 1:08pm UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867/3 "2024-06-01T13:08:04Z")

</div>

Hi Antonio,

Thanks for your reply! I was looking at the MSI and BAT you can create for windows. It seems that this is an option that’s gets lost.&nbsp; So you should manually modify the BAT in this case )-;

KR Henk

---

<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:** [June 1, 2024, 5:55pm UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867/4 "2024-06-01T17:55:54Z")

</div>

[@henk\_stobbe](https://community.dynatrace.com/user/11427),

It’s really better that you pass it as a parameter. You can thus use it in several conditions, including different host groups, network zones, etc.

That I know of, the installers do include fixed parameters, including the tenant, tenant token, and a list of pre-defined servers where the OneAgent can connect.

---

<div class="post-metadata">

**Author:** ![JoseRomero](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joseromero/32/19486_2.png) [@JoseRomero](https://community.dynatrace.com/u/JoseRomero)\
**Post date:** [June 4, 2024, 3:35pm UTC](https://community.dynatrace.com/t/where-does-dynatrace-put-the-hostgroup-parameter-for-the-oneagent-install/45867/5 "2024-06-04T15:35:33Z")

</div>

Hi henk\_stobbe,

Also you can change hostgroup by UI dyntrace.

 ![JoseRomero_0-1717515161550.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5a4e39756c3e86975e1b66ac385f1092a9e6699d.png)

 ![JoseRomero_1-1717515203607.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0d1f37c7a0565545184bda7a53bcd01a449d7a20.png)
