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