Moved this from the Report Center to Report Requests & Questions. Please note that the Report Center is for posting finished reports, not questions.
A sample report can be seen below. If you are interested in building or modifying reports, we would recommend:
- Reviewing some SQL tutorials, as the Lansweeper report builder uses standard SQL queries. This seems like a good tutorial.
- Updating to Lansweeper 5.2, if you haven't already. Lansweeper 5.2 includes a database dictionary, which is linked at the top of the report builder.
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Mac As MainMAC,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSNMPInfo.IfMacaddress As NICMAC
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSNMPInfo On tblAssets.AssetID = tblSNMPInfo.AssetID
Where tsysAssetTypes.AssetTypename = 'printer' And
tblSNMPInfo.IfMacaddress Is Not Null And tblSNMPInfo.IfMacaddress <> '' And
tblAssetCustom.State = 1
Order By tblAssets.AssetName,
NICMAC