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

Is there an API that can be used to upgrade OneAgent versions on servers/host?

ti_events_infra
Organizer

Is there an API that can be used to upgrade OneAgent versions on servers/host?

9 REPLIES 9

Joe_Hoffman
Inactive

OneAgent will automatically upgrade itself. Are you looking to initiate the upgrade on your own schedule? or are you looking for an API to download the update package/latest Agent release?


Julius_Loman
DynaMight Legend
DynaMight Legend

Currently, if autoupdate is disabled, it's possible to trigger an update within the UI.


I believe this is also achievable via the newly announced OneAgent API (but I did not try it yet, but it looks like the autoupdate configuration allows you to set the version you would like to update to):
https://www.dynatrace.com/news/blog/manage-thousands-of-hosts-with-the-new-oneagent-on-a-host-rest-a...
https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/oneagent-on-...

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

No. It's not possible with the new API. You can only manage autoupdate settings. Not possible to say "update now whatever the autoupdate strategy".

 

You got to set autoupdate automatic, then cross fingers it's done fast, then don't forget to put back autoupdate to "disabled or inherited".

Joe_Hoffman
Inactive

As Julius mentioned, the API is certainly an option to change the behavior of individual OneAgent updates on specific hosts. But this only changes whether the OneAgent AutoUpdates are Automatic, Manual, or Inherited.

See https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/configuration-api/oneagent-on-...

This does not force an update at the moment of the API call. So i'm still abit unclear on the original question. Hope this helps.

Hi Joseph, yes we are looking to upgrade the agents on our own schedule, and also to specify which agents to upgrade on that schedule

morsi_tlili
Participant

Hi @Joseph M. H., Is there An API that triggers the upgrade of the OneAgent to a specific version for a given hostName?

thank you,

@Morsi T. Take a look at the links provided by Julius earlier in this thread. He provided the link to the API doc describing how to specify update parameters for a specific host (or group of hosts). But be aware that while you can specify the upgrade version for specific hosts, it's not necessarily going to update the agent at the exact moment of the API call. I don't believe there's any contract stating how quickly the update will happen.

Many Thanks @Joseph M. H., should I expect to wait for few minutes or few hours after calling the API?

I'm not sure, but I would expect to see it updated within 24 hrs. There's several factors that can influence this so it's not an easy exact answer.

Featured Posts