ā04-22-2024 05:21 PM - last edited on ā05-22-2024 09:17 AM by Riley
Hello,
I have detected that a customized report is not showing updated data for field tblVolume.FreeSpace.
Disk free space was changed 3 days ago š
Scan is performed daily.
If I access the Asset infromation screen, I can see the updated information.
If I run the following report, infomation shown for tblVolume.FreeSpace value, is not valid.
How is that?
Thanks for your help,
Select Top (1000000) tblAssets.AssetID,
tblVolume.DriveLetter,
tblVolume.Label As LogicalDiskName,
Case tblVolume.DriveType
When 0 Then 'Unknown'
When 1 Then 'No Root Directory'
When 2 Then 'Removable Disk'
When 3 Then 'Local Disk'
When 4 Then 'Network Drive'
When 5 Then 'Compact Disk'
Else 'RAM Disk'
End As DriveType,
Format(Cast(tblVolume.FreeSpace / 1024 / 1024 / 1024 As numeric) /
Cast(tblVolume.Capacity / 1024 / 1024 / 1024 As numeric), 'P0') As
freePercentage,
Cast(tblVolume.FreeSpace / 1024 / 1024 / 1024 As numeric) As FreeGB,
Cast(tblVolume.Capacity / 1024 / 1024 / 1024 As numeric) As TotalSizeGB,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tsysOS.OSname As OS,
tblAssets.SP
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblVolume On tblAssets.AssetID = tblVolume.AssetID
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Left Outer Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblVolume.DriveLetter <> '' And Cast(tblVolume.Capacity / 1024 /
1024 / 1024 As numeric) > 0 And tblState.Statename = 'Active'
Order By tblVolume.DriveLetter,
Cast(tblVolume.FreeSpace / 1024 / 1024 / 1024 As numeric) /
Cast(tblVolume.Capacity / 1024 / 1024 / 1024 As numeric),
FreeGB,
TotalSizeGB,
tsysIPLocations.IPLocation,
tblAssets.AssetName
Solved! Go to Solution.
ā04-23-2024 10:07 AM
You can try change logics as realized in built-in *"free disk space" reports.
ā04-22-2024 06:45 PM - edited ā04-23-2024 10:03 AM
What is your scan interval for disks?
Floppy, harddisk, volume?
ā04-23-2024 09:06 AM
Hello,
In /Scanning/Itemwaittime/Scanned Item Interval, the HARDDDISK and VOLUME rows show the same values for the Enable and Refresh columns:
I have little experience with LanSweeper, but I understand that the hard disk values are scanned properly since Free Space is shown correctly when I inspect the asset screen. The issue is that the report does not reflect the same data.
Thanks for your help,
ā04-23-2024 10:08 AM
ā04-23-2024 10:07 AM
You can try change logics as realized in built-in *"free disk space" reports.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now