23 Nov 2022 10:07 PM - last edited on 12 Dec 2022 11:02 AM by Ana_Kuzmenchuk
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.
Solved! Go to Solution.
10 Jan 2023 03:49 PM
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.
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.
10 Jan 2023 04:32 PM
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
10 Jan 2023 04:36 PM
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