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

I want to use 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 Was the tag set via GUI?

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 oneagentctl parameters to apply custom tags, names, and metadata to your hosts.

The oneagentctl methods listed below allow only for editing the metadata added using oneagentctl 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 oneagentctl and won’t be displayed using --get-host-tags and --get-host-properties parameters.

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

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 [Environment].

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