Asset Management Group

 View Only
  • 1.  Report Query Question

    Posted Jan 21, 2016 09:08 AM

    I have recently been assigned management of the Client Management Suite for a new installation. We are attempting to build a report or query to display computers with 'Name' 'Discovery Date' and 'Location' to ensure devices are being assigned correctly. I have searched through the forums and am unable to find any suggestions and hope someone could point us in the right direction.



  • 2.  RE: Report Query Question

    Posted Jan 21, 2016 01:40 PM

    Here's the query I would use:

     

    SELECT        dbo.vAllComputerInfo.Guid, dbo.vAllComputerInfo.Name AS [Computer Name], dbo.RMV_HW_AltirisAgent.[First Discovered], dbo.vAllComputerInfo.Location
    FROM            dbo.vAllComputerInfo LEFT OUTER JOIN
                             dbo.RMV_HW_AltirisAgent ON dbo.vAllComputerInfo.Guid = dbo.RMV_HW_AltirisAgent.Guid



  • 3.  RE: Report Query Question

    Posted Jan 21, 2016 02:43 PM

    x2 on the inner joins - never do those in asset management context - search on my name for a paper i published on using Altiris for Asset managment a couple years back. Still relevant 

     

    What is your location key ? naming standard? ip range, Primary user location? I have posted a couple detailed user reports and detailed location reports 

     

     

     



  • 4.  RE: Report Query Question

    Posted Jan 22, 2016 04:08 AM

    *Updated JOINS

    SELECT
      ri.[Guid] AS [AssetGuid]  
      ,ri.[Name] AS [AssetName]
      ,ri.[CreatedDate] AS [First Discovered]
      ,l.[Guid] AS [LocationGuid]
      ,l.[Name] AS [LocationName] 
    FROM  
      vRM_Asset_Item ri  
      LEFT OUTER JOIN ResourceAssociation ra 
        ON ri.Guid = ra.ParentResourceGuid
        AND (ra.ResourceAssociationTypeGuid = '05de450f-39ea-4aae-8c5f-77817889c27c') --Location  
      LEFT OUTER JOIN vRM_Location_Item l 
        ON ra.ChildResourceGuid = l.Guid

     

    First Discovered

    DECLARE @ComputerGuid UniqueIdentifier = 'x'
    
    SELECT vi.CreatedDate as 'First Discovered'
    FROM vResource vr
    LEFT OUTER JOIN vItem vi ON vi.Guid = vr.Guid 
    WHERE vr.Guid = @ComputerGuid

     

    Asset's Location

    SELECT  
      ri.[Guid] AS [AssetGuid],   
      ri.[Name] AS [AssetName],
      l.[Guid] AS [LocationGuid],
      l.[Name] AS [LocationName] 
    FROM  
      vRM_Asset_Item ri  
      LEFT OUTER JOIN ResourceAssociation ra 
        ON ri.Guid = ra.ParentResourceGuid
        AND (ra.ResourceAssociationTypeGuid = '05de450f-39ea-4aae-8c5f-77817889c27c') --Location  
      LEFT OUTER JOIN vRM_Location_Item l 
        ON ra.ChildResourceGuid = l.Guid