→ Celebrate SysAdmin Day 2024 with Lansweeper Enter our Giveaway here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mwieser
Engaged Sweeper
When I create a report for servers I want to know how big their hard drive is so I have TotalPhysical Memory selected. One HDD is 278GB and in the column it says 4294017024.

Here's another example it says 17132187648.
There's two drive one is 73.5 and the other is 1.3 TB.

How can I get this to display MB or GB?

Thanks.
1 REPLY 1
Nick_VDB
Champion Sweeper III
Below you can find a report that will give back the physical hard drive size in GB. To achieve this you get the 'Size' field in the tblFloppy and then divide the value stored by 1024 until you get a value in GB. If you want the value in MB remove a single division by 1024 from the report.

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 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
Cast(Cast(tblFloppy.Size As BigInt) / 1024 / 1024 / 1024 As numeric)
As [Size (GB)]
From tblAssets
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Where tblAssetCustom.State = 1