‎11-21-2014 08:43 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblVmwareInfo.Version,
tblVmwareInfo.BiosVersion,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblVmwareDisk.Name As PartitionName,
Cast(Cast(tblVmwareDisk.FreeSpace As bigint) / 1024 / 1024 / 1024 As
numeric) As FreeGB,
Cast(Cast(tblVmwareDisk.TotalSpace As bigint) / 1024 / 1024 / 1024 As numeric)
As TotalSizeGB,
tblVmwareDisk.Url
From tblVmwareDisk
Inner Join tblAssets On tblVmwareDisk.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblVmwareInfo On tblVmwareInfo.AssetID = tblAssets.AssetID
Where (tblVmwareDisk.FreeSpace / tblVmwareDisk.TotalSpace * 100) < 10 And
tblState.Statename = 'Active'
Order By tblAssets.IPNumeric,
tblAssets.AssetName,
PartitionName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now