cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Walle
Newcomer

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_0-1756868200806.png

Walle_1-1756868251892.png

 

3 REPLIES 3

p_devulapalli
Leader

@Walle Was the tag set via GUI?

https://docs.dynatrace.com/docs/shortlink/oneagentctl#host-tags

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.

Phani Devulapalli

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

dannemca
DynaMight Guru
DynaMight Guru

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.

 

Site Reliability Engineer @ Kyndryl

Featured Posts