03 Sep 2025 03:58 AM
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?
03 Sep 2025 05:15 AM
@Walle Was the tag set via GUI?
https://docs.dynatrace.com/docs/shortlink/oneagentctl#host-tags
Below is what documentation says
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.
03 Sep 2025 07:16 AM
The Tags were added during oneagent installation, with option "--set-host-tag=xxx". Is it the scenario "Tags and metadata added using Dynatrace" ?
03 Sep 2025 03:24 PM
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.