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

Update oneagent by tag

Nathanieltat
Visitor

Im wondering if there is a way to update the oneagent but spit them out via tags, we have specific update windows for different regions and each host has a Location (Auto)*Region* and we want to link the update window to the tags and have them update via that window. 

Regions.png

3 REPLIES 3

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

It is not possible. You can see all options here.

You can raise a product idea.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Nathanieltat
Visitor

My solution was to do it via host groups. They were renamed into groups but this caused a separate issue where dynatrace reimported all the services again. 

Using host groups will impact your process groups and services.  Alternatively, you could do this using the monitored entities query API using type HOST and a tag filter to get a list of host ids.  You can then loop through the list using the OneAgent update API to trigger an upgrade with a payload like this:

{
"setting":"INHERITED",
"version":"1.245.174.20220808-121330"
}

Using a setting of INHERITED turns this into a one time upgrade to the version specified.  


https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v...

https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/configuration-api/oneage...

 

Featured Posts