Please find a report below which lists the data you would like to display. We are summing up the hard-drive disk size and free space per asset as stuffing multiple values into one row is not really supported by SQL which we are using for reports, at least not on SQL Compact.
Instructions for running reports can be found
here. 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 Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblOperatingsystem.Caption As OS,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Processor,
tblAssets.Domain,
tblADComputers.Description As [AD description],
Cast(Cast(tDiskdrives.Freespace As bigint) / 1024 / 1024 / 1024 As Numeric) As
[Sum diskdrive free space],
Cast(Cast(tDiskdrives.Size As bigint) / 1024 / 1024 / 1024 As Numeric) As
[Sum diskdrive size],
tblState.Statename As State,
tsysIPLocations.IPLocation,
tblAssetCustom.Location,
tVMwareHost.AssetName As [VMware host],
tblAssetCustom.Serialnumber,
tblAssets.Uptime,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Left Join tblOperatingsystem On tblAssets.AssetID = tblOperatingsystem.AssetID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join (Select tblDiskdrives.AssetID,
Sum(tblDiskdrives.Freespace) As Freespace,
Sum(tblDiskdrives.Size) As Size
From tblDiskdrives
Where tblDiskdrives.DriveType = 3
Group By tblDiskdrives.AssetID) tDiskdrives On tblAssets.AssetID =
tDiskdrives.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Left Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Left Join tblVmwareGuestNetwork
On tblAssets.Mac = tblVmwareGuestNetwork.MacAddress
Left Join tblVmwareGuest On tblVmwareGuestNetwork.GuestID =
tblVmwareGuest.GuestID
Left Join tblAssets tVMwareHost On tVMwareHost.AssetID =
tblVmwareGuest.AssetID
Order By tblAssets.AssetName