/build/static/layout/Breadcrumb_cap_w.png

K1000 Reporting: Computer model

I am trying to create a simple report on all computers in our inventory that is grouped by models and ordered by location labels i created using IP address ranges. I can see the Model attribute under the Comupter Name in the inventory detail page of the K1000, but I can't find it in either the report wizard or browsing the database tables. Where is the K1000 getting this model so i can use it to create a report?


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 11 years ago
Red Belt
1


Comments:
  • This worked. Now I can get the SQL from the wizard. Thanks. - lmland 11 years ago
Posted by: Timi 11 years ago
7th Degree Black Belt
1

SELECT NAME, CS_MANUFACTURER, CS_MODEL FROM MACHINE ORDER BY CS_MODEL, NAME

Posted by: dugullett 11 years ago
Red Belt
1

You can enter your label name on this one.

SELECT M.NAME, CS_MODEL

FROM MACHINE M

LEFT JOIN MACHINE_LABEL_JT MLJT ON M.ID = MLJT.MACHINE_ID

LEFT JOIN LABEL L ON MLJT.LABEL_ID = L.ID

WHERE L.NAME = '<LABEL_NAME>'

ORDER BY CS_MODEL

or if you didn't want to use your labels, and just IPs.

SELECT M.NAME, CS_MODEL

FROM MACHINE M

WHERE IP LIKE '192.168.10%'

ORDER BY CS_MODEL

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