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

Updating hostgroup information in many hostst.

alexrp25
Participant

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. 

2 REPLIES 2

D_Miller
Advisor

Hello,

Yes it can be done using the APIs or even via the options in Manage > Deployment Status page

Mohamed_Hamdy
DynaMight Champion
DynaMight Champion

Hello @alexrp25,

there are multiple ways to do that,

Host group API

Or you can add the hosts to an existing host group or add a new host group using UI

Mohamed_Hamdy_1-1683810236846.png

 

Mohamed_Hamdy_0-1683810202238.png

 

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

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

Featured Posts