cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Facilities
Engaged Sweeper III
Hi

I am trying to create a report that gives me the lastseen time of all the scanned devices in the Lansweeper database
When i run the following report it only gives me the windows devices:

Select Top 1000000 tblAssetCustom.Custom1 As FullName,
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tsysOS.Image As icon,
tblAssets.Lastseen,
tsysIPLocations.IPLocation,
tblAssets.IPAddress As IP
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblAssets.IPAddress <> '' And tblAssetCustom.State = 1
Order By tblAssets.IPNumeric

Please assist me to get the Linux and Apple devices included in the report?

Regards
Nick
1 REPLY 1
Nick_VDB
Champion Sweeper III
Your report uses the table tsysOS, this table only stores the OS name and icon for Windows computers. Since there is an Inner Join link created between tblassets and tsysOS only Windows computers will be given back. We have modified the report to give back all the assets in your database. However, only the Windows OS will be given back.

Instructions for adding this report to your Lansweeper installation can be found here. If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.


Select Top 1000000 tblAssetCustom.Custom1 As FullName,
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysOS.OSname,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.Lastseen,
tsysIPLocations.IPLocation,
tblAssets.IPAddress As IP
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssets.IPAddress <> '' And tblAssetCustom.State = 1
Order By tblAssets.IPNumeric

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now