Reporting Group

 View Only
  • 1.  Adding last HW inv update field to existing report

    Trusted Advisor
    Posted Oct 24, 2016 10:51 AM
      |   view attached

    I have a report that shows me all admin users on all of my machines, sql below.  Works great.

    However, I need a way to see how outdated this info could be since user info is only updated when hardware inventory updates.

    How can I run a report that shows me admin users on machines, but also show me the date this information was last updated (I'd guess last time HW inventory update ran)?

    Bonus points if report could filter out the local Administrator user that exists on every machine and also group 'domain admins' which exists on every machine.  For now I just ignore those entries.

    Thanks reporting gurus!

    Edit: every time I try to add the sql code I can't save the post - going to try to add it as a txt attachment :(

     

    Attachment(s)

    txt
    sql.txt   684 B 1 version


  • 2.  RE: Adding last HW inv update field to existing report
    Best Answer

    Posted Oct 25, 2016 04:22 AM
      |   view attached

    Hi Sally5432,

     

    I've copied in a query below that should get the latest check in date for the agent and exclude those pesky domain admins and local administrators.

    The table I've joined is the INV_AEX_AC_Identification table, this effectively collates information about the machine, like OS, Timezone and last check in.

     

    Let me know what results you get back.

     

    Hope this helps,

     

    Kev

    Attachment(s)



  • 3.  RE: Adding last HW inv update field to existing report

    Trusted Advisor
    Posted Oct 25, 2016 09:05 AM

    thanks so much for the quick response, Kevin!



  • 4.  RE: Adding last HW inv update field to existing report

    Broadcom Employee
    Posted Oct 25, 2016 09:35 AM
      |   view attached

    Hi Sally5432,

    try this SQL Query to see column with date of last Inventory Scan execution per each managed endpoint (attached)

    This Query shows all inventory scan history for each managed endpoint therefore you will see a lot of records. You can filter out Query output and add condition in SQL Query to show machines where inventory scan was executed last:

    • 1 Month ago: WHERE iir.[Collection Time] <= DATEADD (mm, -1, GETDATE ())
    • 1 Week ago: WHERE iir.[Collection Time] <= DATEADD (ww, -1, GETDATE ())

    Thanks,

    IP.

    Attachment(s)

    txt
    SQL Query for Sally.txt   878 B 1 version