Hello all,
I am trying to create a custom report to determine which AD Sites have ‘gone dark’, meaning the vast majority of endpoints at any given AD site have not reported in 1 day+.
Right now, my approach to this problem is creating 2 sets of data which contain 2 items. Item 1 being unique values of AD sites and Item 2 being the multiplicity for the AD site (meaning the number of endpoints).
The pseudo code I am attempting to apply to this is as follows:
if (AD site from set 2 exists in set 1) then
if (Number of ‘Offline Endpoints’ / Number of ‘Total endpoints’ >= 90% then
value of AD Site + "has gone dark"
elseif (Number of ‘Offline Endpoints’ / Number of ‘Total endpoints’ >= #% then
value of AD Site + "is potentially a problem"
else
nothing
Data Group 1 - Number of Offline Endpoints per AD Site value: AD sites and the number of machines at each site that have not reported in 1 day or more. This is accomplished with the following:
(multiplicity of it, it) of unique values of values of results from (bes property "AD Site") of bes computers whose (now - last report time of it >= 1*day)
Data Group 2 - Total Number of Endpoints per AD Site value: A list of all AD sites and the number of endpoints at each location.
(multiplicity of it, it) of unique values of values of results from (bes property "AD Site") of bes computers
Now this is where I’m getting stuck. The stand alone groups work as expected. However, when I try to plug this information into sets so I can do the math, the fact I have more than 1 item being returned seems to be giving me fits.Examples below.
Singling out return values works:
elements of (set of (it) of unique values of values of results from (bes property "AD Site") of bes computers)
and
elements of (set of (multiplicity of it) of unique values of values of results from (bes property "AD Site") of bes computers)
However, combining return values does not. The following errors out with ‘operator “set” is not defined’ when trying to execute.
elements of (set of (multiplicity of it, it) of unique values of values of results from (bes property "AD Site") of bes computers)
Any help would be greatly appreciated.