# Why are we limited to editing host groups through the CLi post installation of OneAgent?

**URL:** <https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291>\
**Category:** Open Q&A\
**Tags:** installation, oneagent, hosts-classic\
**Created:** [August 19, 2022, 9:57am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291 "2022-08-19T09:57:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsmsdk](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rsmsdk](https://community.dynatrace.com/u/rsmsdk)\
**Post date:** [August 19, 2022, 9:57am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/1 "2022-08-19T09:57:40Z")

</div>

Hi

During the last year we have progressed nicely with our Dynatrace Saas implementation, and we are adding alot of value to our business.

When we first started to roll out OneAgent on our infrastructure, we did not feel confident in configuring Host Groups straight away. We wanted to discuss how we should group our hosts, and thought this was something we could get back to later on… easily.

Turns out, we can not&nbsp;:downcast\_face\_with\_sweat:

Today I wanted to edit the&nbsp;CPU saturation anomaly detection for 18 host that run heavy batch jobs each night. I looked for an easy way to bulk modify the anomaly setting, and found out it could be done by editing on a Host Group level.

I then looked up how to create and add to a new Host Group, and found no other option than to do it through the OneAgent CLi on each host.

Why is that? Everything else in Dynatrace invites you to group and filter based on tags. The whole CLi adventure for this simple grouping of hosts seem unnecessarily complicated.

We do not have access to our production infrastructure, and this now limits us to create a change request towards our outsourcing partner that manage the host operations.

Is it possible that Dynatrace in the future might add this configuration option, so that we are able to do it from the GUI? I looked for a RFE with no success.

Best regards

Rasmus

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 22, 2022, 8:56am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/2 "2022-08-22T08:56:35Z")

</div>

Hi&nbsp;[@rsmsdk](https://community.dynatrace.com/user/42071)&nbsp; I think you can change the host group assignment via oneagentctl. Have a look here:

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

### Change host group assignment

Use the&nbsp;`--set-host-group`&nbsp;parameter to change the host group assignment.

To assign the host to&nbsp;`MyHostGroup`:

- **Linux** &nbsp;or&nbsp; **AIX** :  
`./oneagentctl --set-host-group=MyHostGroup`
- **Windows** :  
`.\oneagentctl.exe --set-host-group=MyHostGroup`

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 22, 2022, 9:26am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/3 "2022-08-22T09:26:55Z")

</div>

[@rsmsdk](https://community.dynatrace.com/user/42071)&nbsp;actually this is coming soon, see the [product idea](https://community.dynatrace.com/post/185906)

---

<div class="post-metadata">

**Author:** ![rsmsdk](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rsmsdk](https://community.dynatrace.com/u/rsmsdk)\
**Post date:** [August 22, 2022, 9:28am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/4 "2022-08-22T09:28:24Z")

</div>

Thank you. That still require access to the host and is overall inconvenient compared to all the other stuff you can configure straight from the GUI.

---

<div class="post-metadata">

**Author:** ![rsmsdk](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rsmsdk](https://community.dynatrace.com/u/rsmsdk)\
**Post date:** [August 22, 2022, 9:32am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/5 "2022-08-22T09:32:12Z")

</div>

Whaat&nbsp;:grinning\_face: that is great news, thank you so much for sharing!

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 22, 2022, 9:49am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/6 "2022-08-22T09:49:37Z")

</div>

You are welcome! Actually, the search includes product ideas only if you are logged in the community. That’s probably you could not find the existing idea.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [September 5, 2022, 4:55am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/7 "2022-09-05T04:55:32Z")

</div>

Please keep in mind that it is best practice to get the host group assigned at deployment time and not to change it.

It also affects process group detection, so changing a host group will cause process entity IDs to change and lose the connection to historical information.

It is unclear at this stage if the UI & API update will have any positive effect in that regard (such as auto-connecting old process groups to new ones).

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [February 15, 2023, 8:46am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/8 "2023-02-15T08:46:48Z")

</div>

Host group assignment can now also be changed through Deployment status \> OneAgents \> Bulk action.  
Where you can even type a new name to create and assign a new host group.

---

<div class="post-metadata">

**Author:** ![Don\_Meuth](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@Don\_Meuth](https://community.dynatrace.com/u/Don_Meuth)\
**Post date:** [August 14, 2024, 2:30pm UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/9 "2024-08-14T14:30:01Z")

</div>

We have a similar issues, we are in Google Cloud and have many Google CloudRun applications.&nbsp; Since the aget is not directly installed, but is unzipped and then referenced to the shared object, there is no way to declare before nor update afterwords because oneagentctl is NOT installed and since there are serverless applications cannot be logged onto as well.&nbsp; We need a way to update the HostGroup for these to set up groups.&nbsp; But since scaling occurs frequently we need a way to have a RULE that says something like, if Host Name begins with “CloudRun” then assign to host Group Google\_CloudRun\_Hosts.&nbsp; We have not found a way, to do this.&nbsp; What we need is something like the process group rules configuration.

---

<div class="post-metadata">

**Author:** ![rsmsdk](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rsmsdk](https://community.dynatrace.com/u/rsmsdk)\
**Post date:** [August 16, 2024, 8:49am UTC](https://community.dynatrace.com/t/why-are-we-limited-to-editing-host-groups-through-the-cli-post-installation-of-oneagent/36291/10 "2024-08-16T08:49:50Z")

</div>

Very important observation. This had a big impact on our configuration.
