SQL Query for Computer Details Inventory Report
The following is the SQL query based reports to fetch Information like Computer Name, Location(Domain) , OS Details Like (OS Name, OS Type,OS Revision), Processor details like(CPU Type, CPU Speed, CPU Count) Computer Model details like(Manufacturer, Computer Model) from Altiris Inventory.
---------------------------------- SELECT DISTINCT -- Computer Name And Location AI.[Name] as [Computer Name], AI.[Domain] AS [Computer Domain], -- OS Details AI.[OS Name] AS [OS Name], AI.[OS Type] AS [OS Type], AI.[OS Revision] AS [OS Revision], AI.[System Type], -- Processor CPU.[Type] AS 'CPU Type', CPU.[Speed] AS 'CPU Speed', CPU.[Number] AS 'CPU Count', -- Computer Model HMDL.[Manufacturer] AS [Manufacturer], HMDL.[Model] AS [Computer Model] FROM dbo.Inv_AeX_AC_Identification AS AI LEFT OUTER JOIN [Inv_AeX_HW_CPU] AS CPU ON AI.[_ResourceGuid] = CPU.[_ResourceGuid] LEFT OUTER JOIN [Inv_Mon_HW_Computer_Model] AS HMDL ON AI.[_ResourceGuid] = HMDL.[_ResourceGuid] ORDER BY AI.[Name] ASC ----------------------------------
Note: One can alter the report as per need.
Thanks,
Sid

Correction With SQL Code
In your code the line below did not work:
LEFT OUTER JOIN [Inv_Mon_HW_Computer_Model] AS HMDL
I changed it to the following and it worked like a charm:
LEFT OUTER JOIN [Inv_Manufacturer] AS HMDL
Just thought I'd pass it along.
Thanks for the quick and easy SQL query!
Would you like to reply?
Login or Register to post your comment.