18 Mar 2025
01:07 PM
- last edited on
19 Mar 2025
08:02 AM
by
MaciejNeumann
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.
Solved! Go to Solution.
20 Mar 2025 09:41 AM
Hi,
It is not possible. You can see all options here.
You can raise a product idea.
Best regards
07 Apr 2025 11:29 AM
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.
09 Apr 2025 06:44 PM - edited 09 Apr 2025 06:47 PM
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...