Hi, can someone assist please.
I am trying to create custom SWQL report that will count all my current OS and group them by the BusinessUnit. Both fields are custom properties.
However, when I group by the BusinessUnit custom properties, only the 'Windows OS Count' is group, whereas, the others show the total count.
| Header 1 |
|---|
select cp.os_cbu as [Customer Business Unit], count(cp.MachineType_Pool) as [Windows OS Count],
(select Count(cp.MachineType_Pool) as [Linux OS Count] from orion.nodes n left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID where cp.Asset_Type = 'server' and cp.MachineType_Pool = 'Linux' ) as [Linux OS Count],
(select Count(cp.MachineType_Pool) as [Solaris OS Count] from orion.nodes n left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID where cp.Asset_Type = 'server' and cp.MachineType_Pool = 'Solaris' ) as [Solaris OS Count]
from orion.nodes N left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID where cp.asset_type = 'server' and cp.MachineType_Pool = 'windows'
group by cp.OS_CBU |
Results
Can you help in getting all of the OS Count to sort by the Customer Business Unit. Applying the same 'Windows OS Count' to the 'Linux and Solaris OS Count', and not displaying the full total.
Thanks much!
