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

API or script to Disable Multiple host

TaylorJae
Newcomer

Hi --- Is there an API or script we can use to Bulk disable Hosts? 

Right now, we are disabling each and every hosts via Settings > Monitoring Overview > Hosts > Monitor this host (toggle) menu. 

We do sometimes have 50 servers to disable per day and this method cause us man hours in a long time.

Thanks for your advise.

 

TaylorJae

2 REPLIES 2

radek_jasinski
DynaMight Guru
DynaMight Guru

Hi @TaylorJae 

I recommend creating a Host Group to group agents: https://www.dynatrace.com/support/help/platform-modules/infrastructure-monitoring/hosts/configuratio...

You can manage the configuration through the API (disable the agent as well): https://www.dynatrace.com/support/help/shortlink/api-config-oneagent-on-host-group-auto-update-put

Radek

Have a nice day!

dannemca
DynaMight Guru
DynaMight Guru

Similar question answered here: https://community.dynatrace.com/t5/Open-Q-A/Is-there-a-way-to-disable-oneagents-belong-to-management...

Site Reliability Engineer @ Kyndryl

Featured Posts