Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SEC_ALERTS
Engaged Sweeper
Hi Team,

We need one single report of the free disk space of c: drive only in below format.

Computer name
IP address
Total Size
Free space
Last scan date
Domain

Thanks in Advance!!


1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
Please use the report below.
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Size / 1024 /
1024) <> 0 And tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]

View solution in original post

7 REPLIES 7
RCorbeil
Honored Sweeper II
You can find the details of what you're looking for in the database documentation. There's a link to it at the top of the page when you open the report editor.
WHERE
tblDiskdrives.Caption Like '%c%' -- drive caption contains "C" (caption is C:, D:, etc.)
AND Ceiling(tblDiskdrives.Freespace / 1024 / 1024) < 1024 -- free space < 1024 MB (aka 1 GB)
AND Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 -- drive is not empty
AND tblAssetCustom.State = 1 -- asset is active
AND tblDiskdrives.DriveType = 3 -- local disk drive
William382
Engaged Sweeper III
RC62N wrote:
You can find the details of what you're looking for in the database documentation. There's a link to it at the top of the page when you open the report editor.
WHERE
tblDiskdrives.Caption Like '%c%' -- drive caption contains "C" (caption is C:, D:, etc.)
AND Ceiling(tblDiskdrives.Freespace / 1024 / 1024) < 1024 -- free space < 1024 MB (aka 1 GB)
AND Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 -- drive is not empty
AND tblAssetCustom.State = 1 -- asset is active
AND tblDiskdrives.DriveType = 3 -- local disk drive


That was fast! Thank you!
SEC_ALERTS
Engaged Sweeper
Thanks for your reply!!!
Hemoco
Lansweeper Alumni
Please use the report below.
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Freespace /
1024 / 1024) < 1024
And Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 And
tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]
William382
Engaged Sweeper III
Lansweeper wrote:
Please use the report below.
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Freespace /
1024 / 1024) < 1024
And Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 And
tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]



Super old post, what do I need to do to change the report size to something custom?
SEC_ALERTS
Engaged Sweeper
Thanks a lot for your reply.

In addition to this can your please provide the report for
All Workstations and server less than 1GB free in c: drive only
Hemoco
Lansweeper Alumni
Please use the report below.
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Size / 1024 /
1024) <> 0 And tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

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

Try Now