Client Management Suite

 View Only
Expand all | Collapse all

Help with report - Mac Addresses?

  • 1.  Help with report - Mac Addresses?

    Trusted Advisor
    Posted Sep 12, 2012 11:48 AM

    Can someone help me to get a report that shows all computers and associated mac addresses with each?  

    Thanks



  • 2.  RE: Help with report - Mac Addresses?

    Posted Sep 12, 2012 11:51 AM


  • 3.  RE: Help with report - Mac Addresses?

    Trusted Advisor
    Posted Sep 12, 2012 11:55 AM

    I saw that link but it doesn't really address how to create a report in CMS 7 showing each machine with it's mac addresses.  Thanks anyway.



  • 4.  RE: Help with report - Mac Addresses?

    Posted Sep 13, 2012 07:01 AM

    This SQl report we use may help you, it will display multiple rows for each computer where there is more than one interface:

    SELECT DISTINCT vc.Guid, vc.Name, IP.[IP Address], IP.[MAC Address],

    IP.[Subnet Mask], IP.[Default Gateway], vc.[OS Name], vc.[OS Version], va.Status, va.Manufacturer, va.Model, va.[Serial Number]

    FROM dbo.Inv_AeX_AC_TCPIP as ip

    Left Outer JOIN

    dbo.vComputer as vc ON IP._ResourceGuid = vc.Guid INNER JOIN

    dbo.vAsset as va ON vc.Guid = va._ResourceGuid

    ORDER BY vc.Name, IP.[IP Address]



  • 5.  RE: Help with report - Mac Addresses?

    Trusted Advisor
    Posted Sep 13, 2012 09:46 AM

    I did right click on reports, new SQL report and put that in under parameterized query but am getting

    "This DataSource is not in a runnable state."

    Am I doing something stupid?



  • 6.  RE: Help with report - Mac Addresses?

    Posted Sep 20, 2012 08:14 PM

    You may have left the security scoping code in the report when you pasted the other report?

     

    Try clearing everything in the Parameterized Query box and pasting in this:

     

     

    DECLARE @v1_TrusteeScope nvarchar(max)

       SET @v1_TrusteeScope = N'%TrusteeScope%'

    SELECT DISTINCT vc.Guid AS [_ItemGuid], vc.Name, IP.[IP Address], IP.[MAC Address],

    IP.[Subnet Mask], IP.[Default Gateway], vc.[OS Name], vc.[OS Version], va.Status, va.Manufacturer, va.Model, va.[Serial Number]

    FROM dbo.Inv_AeX_AC_TCPIP as ip

    Left Outer JOIN

    dbo.vComputer as vc ON IP._ResourceGuid = vc.Guid INNER JOIN

    dbo.vAsset as va ON vc.Guid = va._ResourceGuid

    WHERE

       (

          (ip._ResourceGuid IN (SELECT [ResourceGuid] FROM [ScopeMembership] WHERE [ScopeCollectionGuid] IN (SELECT [ScopeCollectionGuid] FROM dbo.fnGetTrusteeScopeCollections(@v1_TrusteeScope))))

       )

    ORDER BY vc.Name, IP.[IP Address]



  • 7.  RE: Help with report - Mac Addresses?

    Posted Sep 21, 2012 05:12 AM

    Clear the paramertized query before pasting the sql code in. The parameters are not required for this report.



  • 8.  RE: Help with report - Mac Addresses?

    Trusted Advisor
    Posted Sep 24, 2012 04:01 PM

    @mark and @odami - thanks for the replies, i had cleared the parameterized query completely before pasting anything in.

     

    I tried both code suggestions, but both resulted in "This DataSource is not in a runnable state."  

     

     



  • 9.  RE: Help with report - Mac Addresses?
    Best Answer

    Posted Sep 25, 2012 06:38 AM

    You haven't got Asset Management Suite installed so no vAsset.

    You still get MAC address without those columns, don't forget to add the TrusteeScope as a Query Parameter:

    DECLARE @v1_TrusteeScope nvarchar(max)
    
    
       SET @v1_TrusteeScope = N'%TrusteeScope%'
    
    
    SELECT DISTINCT vc.Guid AS [_ItemGuid], vc.Name, IP.[IP Address], IP.[MAC Address],
    
    
    IP.[Subnet Mask], IP.[Default Gateway], vc.[OS Name], vc.[OS Version]
    
    FROM dbo.Inv_AeX_AC_TCPIP as ip
    
    
    Left Outer JOIN
    
    
    dbo.vComputer as vc ON IP._ResourceGuid = vc.Guid
    
    WHERE
    
    
       (
    
    
          (ip._ResourceGuid IN (SELECT [ResourceGuid] FROM [ScopeMembership] WHERE [ScopeCollectionGuid] IN (SELECT [ScopeCollectionGuid] FROM dbo.fnGetTrusteeScopeCollections(@v1_TrusteeScope))))
    
    
       )
    
    
    ORDER BY vc.Name, IP.[IP Address]
     


  • 10.  RE: Help with report - Mac Addresses?

    Trusted Advisor
    Posted Sep 25, 2012 08:35 AM

    Thanks this worked great!  I wish reporting was more intuitive for people not familiar with the tables, etc.



  • 11.  RE: Help with report - Mac Addresses?

    Posted Sep 25, 2012 10:38 AM

    There's always IT Analytics, a couple of good articles have been posted recently:

    http://aka-community.symantec.com/connect/pt-br/articles/reporting-options-it-analytics-71

    http://www.symantec.com/connect/articles/integrating-custom-inventory-data-it-analytics-71