Symantec Management Platform (Notification Server)

 View Only
  • 1.  Summarize all solution plugin license status

    Posted Oct 27, 2017 12:22 AM

    I'm only manage to create an individual solution report using 

     

    DECLARE @Product AS NVARCHAR (200)
    --Enter the guid of the solution or its name.  
    --If it is only part of the guid or name make sure to use % symbals as needed. 
    SET @Product = 'Altiris Patch Management Solution'

    SELECT vp.Name, vc.Name, vc.Domain, liu.* 
    FROM LicenseInUse liu
    JOIN vProduct vp ON vp.Guid = liu.LicensingPolicyGuid
    JOIN vComputer vc ON vc.Guid = liu.ResourceGuid
    WHERE vp.Name LIKE @Product OR vp.Guid LIKE @Product
    ORDER BY vp.Name, vc.Name

     

     

    but how can i create a SQL report like table below

    Name OSName Inventory Solution Patch Management Solution Software Management Solution
    Computer1 Windows 7 Yes Yes Yes
    Computer2 Windows 7 Yes Yes Yes
    Computer3 Windows 7 Yes Yes Yes
    Computer4 Windows Server 2008 Yes No No
    Computer5 Mac OS X Yes No No
    Computer6 Windows 7 Yes Yes Yes
    Computer7 Windows 7 Yes Yes Yes


  • 2.  RE: Summarize all solution plugin license status
    Best Answer

    Posted Oct 27, 2017 01:38 PM

    Something like this?

    	SELECT 
    	vc.Name [Computer Name]
    	,vc.[OS Name]
    	,Case When Exists (
    			Select 1 from LicenseInUse liu where (liu.LicensingPolicyGuid = 'C6D19F78-1434-49AC-BEC8-D18255E99F57' and vc.Guid = liu.ResourceGuid))
    		Then 'Yes'
    		Else 'No'
    	End as [Patch Management]
    	,Case When Exists (
    			Select 1 from LicenseInUse liu where (liu.LicensingPolicyGuid = 'CD39B720-F871-11D2-8643-00104B74A9DF' and vc.Guid = liu.ResourceGuid))
    		Then 'Yes'
    		Else 'No'
    	End as [Inventory Solution]
    	,Case When Exists (
    			Select 1 from LicenseInUse liu where (liu.LicensingPolicyGuid = 'AD3F5980-D9E9-11D3-A318-0008C7A09198' and vc.Guid = liu.ResourceGuid))
    		Then 'Yes'
    		Else 'No'
    	End as [Software Management Solution]
    	FROM
    	vComputer vc
    	where vc.IsManaged = 1 
    	order by vc.Name

     



  • 3.  RE: Summarize all solution plugin license status

    Posted Oct 29, 2017 10:11 PM

    Hi MonitorMan, thanks a lot