/build/static/layout/Breadcrumb_cap_w.png

[Answered] Exporting a list of computers with a specific service

Hello All,

 

I am trying to export a list of computers with specific services installed. I have a label made up of all the services I want to track and I have tried exporting to a csv, but that only shows all the different labels and the numbers of computers with them installed.

 

Any suggestions?


2 Comments   [ + ] Show comments
  • can you post your report - SMal.tmcc 11 years ago
  • select NTSERVICE.NAME,COUNT(DISTINCT MACHINE_ID) as Computers,
    NTSERVICE.PRODUCT_VERSION as Version, NTSERVICE.COMPANY_NAME as Manufacturer from NTSERVICE
    join NTSERVICE_LABEL_JT X on NTSERVICE.ID = X.NTSERVICE_ID AND X.LABEL_ID = 122
    left join MACHINE_NTSERVICE_JT on MACHINE_NTSERVICE_JT.NTSERVICE_ID = NTSERVICE.ID
    left join NTSERVICE_LABEL_JT on NTSERVICE.ID = NTSERVICE_LABEL_JT.NTSERVICE_ID
    left join LABEL on LABEL.ID = NTSERVICE_LABEL_JT.LABEL_ID
    group by NTSERVICE.ID ORDER BY NAME

    So this just returns a list of the services in the label with the amount of computers for each. I need to have a list of all the computers that has one or all of the services in the label.

    The real issue is that we need to remove Dameware from a bunch of machines but not all of them have and Add/Remove entry.

    Thank you for your help. - TylerAngyal 11 years ago
    • Wait are you wanting to export a list, or create a smart label to look for services? - dugullett 11 years ago

Answers (1)

Answer Summary:
Posted by: dugullett 11 years ago
Red Belt
3

You should be able to change the "View By" to the label you need, and then export to csv. If that doesn't work for you try something like the query below.

SELECT DISTINCT M.NAME, IP, USER_LOGGED

FROM MACHINE M

LEFT JOIN MACHINE_NTSERVICE_JT SJT ON SJT.MACHINE_ID = M.ID

LEFT JOIN NTSERVICE NS ON SJT.NTSERVICE_ID= NS.ID

WHERE NS.NAME = '<SERVICE NAME>'

ORDER BY M.NAME

Comments:
  • This is good, but I need a label full of various services to export all the computers. - TylerAngyal 11 years ago
    • SELECT DISTINCT M.NAME,
      GROUP_CONCAT(DISTINCT NS.NAME SEPARATOR '\n') AS 'Service Name',IP, USER_LOGGED
      FROM MACHINE M
      LEFT JOIN MACHINE_NTSERVICE_JT SJT ON SJT.MACHINE_ID = M.ID
      LEFT JOIN NTSERVICE NS ON SJT.NTSERVICE_ID= NS.ID
      WHERE NS.NAME RLIKE '<SERVICE NAME 1>|<SERVICE NAME 2>|<SERVICE NAME 3>'
      GROUP BY M.NAME
      ORDER BY M.NAME - dugullett 11 years ago
      • AHHHHH see that did it! Thanks a lot! - TylerAngyal 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ