Hello everyone!
I was trying to migrate repoint oneagent from one SaaS tenant to another.
Is it possible to do this using API?
I know it is possible using oneagentclt command. (OneAgent configuration via command-line interface — Dynatrace Docs) but I dont want to log into servers and perform this activity 
Thanks, in adv!
Hi,
I think that is not possible from API, waiting for another answer.
Anyway, do you use some orchestrator as Ansible / Puppet?
Best regards
Agree with Anton, you should take into consideration an orchestation tool like Ansible/Puppet/Rundeck/Chef
Thanks for the suggestion @PacoPorro and @AntonPineiro 🙂
Strange thing is, that API endpoint Remote configuration management of OneAgents and ActiveGates — Dynatrace Managed Docs on Managed can do this. So I can move agents from one managed tenant to another or to a Saas tenant. But then I’m stuck with oneagentctl. Or is this a glitch in the docs?
@TorstenHellwig yes, it’s possible to do that Managed → SaaS using UI (and API).
It’s also possible to have a SaaS → SaaS, but you need to raise a support ticket for this. It’s unfortunately disabled for security reasons. I stumbled upon this at first (why ??) but then understood the reasons. Ask for enabling SaaS to SaaS migration feature flags.
What kind of migration do you need?
Hi @JuliusLoman , it is a Saas PoC where we moved a few non-prod agents from Managed to the PoC tenant and now want to go back. And I was sure it’s the same convenient way. The customer has a hosted data center and can’t access the monitored systems himself.
@TorstenADAC - Oh, not sure if you will be able to do SaaS to Managed. Most likely, you are left with oneagentctl on the hosts. If I remember how it looked like, it was SaaS to SaaS only. Unless you have 200+ agents, I’d do this using oneagentctl + ansible (or automation tool you/customer prefers).
Looks like that’s what they have to do. It’s just some dozens of hosts.