# No outputs of "oneagentctl --get-host-tags" and "oneagentctl --get-host-properties"

**URL:** <https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [September 3, 2025, 2:58am UTC](https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202 "2025-09-03T02:58:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walle](https://avatars.discourse-cdn.com/v4/letter/w/5daacb/32.png) [@Walle](https://community.dynatrace.com/u/Walle)\
**Post date:** [September 3, 2025, 2:58am UTC](https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202/1 "2025-09-03T02:58:22Z")

</div>

I want to use&nbsp;oneagentctl command to get tags and properties of a monitored host. But there’s no output.

I can see these values in web portal.

Is there anyone meeting same problem?

 ![Walle_0-1756868200806.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a214532654eec9baa2d21a0b8e6d05471a37c12c.png)

 ![Walle_1-1756868251892.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1f7934902c136e0c13552f8034b539cee8042fe4.png)

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [September 3, 2025, 4:15am UTC](https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202/2 "2025-09-03T04:15:20Z")

</div>

[@Walle](https://community.dynatrace.com/user/95099)&nbsp;Was the tag set via GUI?

> **[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.

Below is what documentation says

## Host tags and metadata

Within dynamic or large environments, manual host tagging can be impractical. For dynamic deployments that include frequently changing host instances and names (for example, AWS or MS Azure), you can use dedicated&nbsp;oneagentctl&nbsp;parameters to apply custom tags, names, and metadata to your hosts.

The&nbsp;oneagentctl&nbsp;methods listed below allow only for editing the metadata added using&nbsp;oneagentctl&nbsp;itself or previously using the configuration files. **Tags and metadata added using Dynatrace, as well as retrieved from a monitored environment (for example the AWS tags) are not editable with&nbsp;oneagentctl&nbsp;and won’t be displayed using&nbsp;--get-host-tags&nbsp;and&nbsp;--get-host-properties&nbsp;parameters.**

---

<div class="post-metadata">

**Author:** ![Walle](https://avatars.discourse-cdn.com/v4/letter/w/5daacb/32.png) [@Walle](https://community.dynatrace.com/u/Walle)\
**Post date:** [September 3, 2025, 6:16am UTC](https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202/3 "2025-09-03T06:16:18Z")

</div>

The Tags were added during oneagent installation, with option “--set-host-tag=xxx”.&nbsp; Is it the scenario “ **Tags and metadata added using Dynatrace** ” ?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [September 3, 2025, 2:24pm UTC](https://community.dynatrace.com/t/no-outputs-of-oneagentctl-get-host-tags-and-oneagentctl-get-host-properties/53202/4 "2025-09-03T14:24:40Z")

</div>

The tags you see thru command line are the ones added by command line (or thru UI, in deployment status page).

They do start with&nbsp;[Environment].

Can you show us some example of a host with the&nbsp;[Environment] tag, since the one you provided has none.
