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

Retrieve last 7 days brand new on-boarding hosts

avrildong
Helper

Is there a way to retrieve last 7 days brand new onboarding hosts? We used the below test cases but return incorrect results:

 

Test case1:

"api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false"

vs "api/v1/entity/infrastructure/hosts?from=now-7d&to=now&includeDetails=false"

compare "displayName" (=hostname) return no diff.

Test case2:

"api/v1/entity/infrastructure/hosts?from=now-90d&to=now-14d&includeDetails=false"

vs "api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false": compare "displayName" (=hostname) , return very small qty of hosts and missing many.

 

The goal is to retrieve last 7 days brand new on-boarding hosts.

That is why we intend to use alternative solution: compare last 7-14days hosts list with last 7 days hosts list to see any brand new.

3 REPLIES 3

ChadTurner
DynaMight Legend
DynaMight Legend

So you could use the deployment status page to see the hosts that have recently onboarded hosts in the past 3 days. You could also use the BizOps Configurator to see the new Host unit consumption per Host Group or even Management Zone, but it wont give you the host ID. 

ChadTurner_0-1673365631846.png

 

ChadTurner_2-1673365697335.png

As you mentioned you could always do a export of the hosts and then use a tool such as beyond compare to see what new/removed.

-Chad

@ChadTurner 

Thank you!

#1. Q: BizOps Configurator  > Where I can get this? Is it free tool?

#2. "As you mentioned you could always do a export of the hosts and then use a tool such as beyond compare to see what new/removed.": I see, so we have to make routine export via API, and compare, which is out-of-dynatrace-solution. 

Rgds, Avril 

Yeah it depends on our frequency. We actually used Beyond Compare to target new servers for patching (once a month) so we could ensure they were all part of a restart group. This allowed us to find the 5-6 hosts that were new out of the 20K hosts the org had. 

Biz ops configurator can be found here: https://dynatrace.github.io/BizOpsConfigurator/#prerequisites It is free, and you'll need a token for your environment, the instructions are well layed out. 

You could also ask your Dynatrace Account rep to provide a report of new hosts and and such on a weekly basis. We use to get a really nice report of usage on a weekly basis

-Chad

Featured Posts