13 Feb 2023 08:54 AM
Hello Accidentally I deployed all my servers at full stack, and i wanted to configure all them in Infra Only mode at once, because i have a 400 hundred deployed!!!
Solved! Go to Solution.
13 Feb 2023 11:15 AM
Hi Walter,
Use shell/powershell script to execute the "oneagentctl" command on remote servers.
13 Feb 2023 11:46 AM
yes im trying to run a script with .\oneagentctl.exe --set-infra-only=true, its only thing i know, but wanted to try from Dynatrace API.
13 Feb 2023 11:31 AM
Hello @Walter2
I did not try by myself but you can give it a try. Have a look at the below link for the configuredMonitoringMode
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/oneagent-on-host
Regards,
Babar
13 Feb 2023 11:47 AM
I´ll see it, thank you!!!
14 Feb 2023 09:12 PM
The way to do what you want is using the Settings Objects API
01 Oct 2024 07:55 PM
What if I have 400 host? How would we accomplish that in one statement?
01 Oct 2024 09:54 PM
Hello @HeyEngineer is not posible on only 1 statement, in step 1 you gather all the necessary HOST ID's, with a little scripting you set in 3 what is next to scope as a variable, and FOR EACH HOST ID's in your list, it could be a text file you iterate the API call until finish.
02 Oct 2024 07:42 AM
You can use an external tool like POSTMAN and pass a csv or text file with all Host IDs and loop
when you have 1 execution working with postman, very easy to loop.
02 Oct 2024 02:22 PM
I also add an idea to add new scopes to the settings objects API. You can vote to be considered by the Dynatrace team.