The information I am seeking are the following fields:
Last known user
OS
IP address
IP location
Last seen
Last tried
Computer name
CPU
I have basically taken the built in report named "OS: Operating system overview", added in the "tsysIPLocation" table and checked the appropriate boxes to get most of the information I need. The last piece was the CPU information which I can pull from the built in report "Computer: Processor information".
What I can seem to do it find a data source or table that the "Computer: Processor information" report uses called "ProcCapacity". I tried adding in a table called "tblProcessor", but that seemed to duplicate some of my results in the report, which I'm guessing may be pinging for different cores in CPU's, but I'm not sure.
Here is the current working SQL that is missing CPU information about the PC's in the results.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tsysIPLocations.IPLocation,
tblOperatingsystem.Caption,
tblAssets.Username
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where tblAssetCustom.State = 1