# Host group assignment

**URL:** <https://community.dynatrace.com/t/host-group-assignment/43937>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [February 1, 2024, 6:54pm UTC](https://community.dynatrace.com/t/host-group-assignment/43937 "2024-02-01T18:54:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![carlos\_carreno](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/carlos_carreno/32/28820_2.png) [@carlos\_carreno](https://community.dynatrace.com/u/carlos_carreno)\
**Post date:** [February 1, 2024, 6:54pm UTC](https://community.dynatrace.com/t/host-group-assignment/43937/1 "2024-02-01T18:54:52Z")

</div>

Good afternoon everyone, I need your support in understanding a scenario when I am assigning the host group to a group of HOSTs

I am assigning a host group to a group of hosts via commands:

.\oneagentctl.exe --set-host-group=xxxxxxxx --restart-service

“When checking through this other command, it seems that this feature was indeed assigned to the host.”

.\oneagentctl.exe --get-host-group

![carlos_carreno_1-1706813402128.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/a/0/a0da02907c3c3dd8ff43b340349c9a5f7cf36c9f_2_690x52.png)

Despite having assigned it to the host in that order, when I go to the interface to visualize the data, it doesn’t appear.

 ![carlos_carreno_2-1706813473001.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/df49a35eafffc44ddf198a40227be992e8867914.png)

**Example of how it should appear.**

 ![carlos_carreno_3-1706813501608.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/9/d97a12b13d2c14ad825f33b18c2a3dc938a1e25c.png)

Additionally, there is a host that appears assigned to this host group, but the command has never been executed on it.

Thank you for your valuable help and guidance. Many thanks.

---

_[View the full topic](https://community.dynatrace.com/t/host-group-assignment/43937)._
