11 May 2023 01:51 PM - last edited on 12 May 2023 07:45 AM by MaciejNeumann
Hello, I would like to know if there is a way to update HOSTGROUP information in a way of script to many hosts. The hosts were never assigned any hostgroup. Is there a way to updated it using some kind of script?
Thanks.
Solved! Go to Solution.
11 May 2023 01:57 PM
Hello,
Yes it can be done using the APIs or even via the options in Manage > Deployment Status page
11 May 2023 02:05 PM
Hello @alexrp25,
there are multiple ways to do that,
Or you can add the hosts to an existing host group or add a new host group using UI
Deployment Status - Select the required hosts - select modify host group from the remote configuration list - and choose the required hostgroup
Or to use oneagentctl but you have to access the servers where oneagent is installed and execute the command
https://www.dynatrace.com/support/help/shortlink/oneagentctl#host-groups
don't forget to add --restart-service