iam using SCCM , iam running a query to get data from SCCM database. there is deployment and paRticular collection , after running i get count of servers which are available in progress and other. please find query
Declare @SoftwareUpdateGroupName as varchar(255)
Set @SoftwareUpdateGroupName = 'RDP-Vulnerabilities-Windows7'
Select
Li.Title,
Ds.CollectionName as 'CollectionName',
Ds.CollectionID,
Ds.NumberTotal as 'Target',
(Ds.NumberTotal - Ds.NumberUnknown) as 'Available Target',
Ds.NumberSuccess as 'Migrated',
Ds.NumberErrors as 'Error',
Ds.NumberInProgress as 'In Progress',
Ds.NumberOther as 'Remaining',
Ds.NumberUnknown as 'Not Available',
case when (Ds.NumberSuccess = 0) or (Ds.NumberSuccess is null) Then '0'
Else (round(Ds.NumberSuccess/ convert (float,Ds.NumberTotal)*100,2))
End as '% Success'
from v_DeploymentSummary Ds
left join v_CIAssignment Vaa on Ds.AssignmentID = Vaa.AssignmentID
left join v_AuthListInfo LI on LI.ModelID = Ds.ModelID
--left join v_CH_ClientSummary
Where Ds.FeatureType = 5
and Li.Title like @SoftwareUpdateGroupName and
Ds.CollectionName like '%W10 - Ring 2 - Wave 2%'
order by Ds.CollectionName
--select * from fn_AppDeploymentAssetDetails(1033) where collectionid like '%CAS02E0B%'
output iam getting is like this
i need to further drill down non available servers, is there any way things i did
1) go through tables v_client_summary but doesnt help
2) went through SCCM report in SCCM Management 4 - Deployments that target a collection its giving all other status except
way its shown bifurcation in dashboard , i need same from query but its not giving me desired result.