‎05-06-2013 08:41 AM
Solved! Go to Solution.
‎05-08-2013 11:25 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Left Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Where (tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%'
And tblAssets.Assettype = -1 And tblComputersystem.Domainrole > 1) Or
(tsysAssetTypes.AssetTypename = 'linux' And tblAssetCustom.Manufacturer Not
Like '%vmware%' And tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like
'%virtual%') Or
(tsysAssetTypes.AssetTypename = 'xen server' And
tblAssetCustom.Manufacturer Not Like '%vmware%' And tblAssetCustom.State = 1
And tblAssetCustom.Model Not Like '%virtual%')
Or
(tsysAssetTypes.AssetTypename like '%vmware%' And tblAssetCustom.State = 1)
Order By tblAssets.IPAddress
‎05-08-2013 11:25 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Left Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Where (tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%'
And tblAssets.Assettype = -1 And tblComputersystem.Domainrole > 1) Or
(tsysAssetTypes.AssetTypename = 'linux' And tblAssetCustom.Manufacturer Not
Like '%vmware%' And tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like
'%virtual%') Or
(tsysAssetTypes.AssetTypename = 'xen server' And
tblAssetCustom.Manufacturer Not Like '%vmware%' And tblAssetCustom.State = 1
And tblAssetCustom.Model Not Like '%virtual%')
Or
(tsysAssetTypes.AssetTypename like '%vmware%' And tblAssetCustom.State = 1)
Order By tblAssets.IPAddress
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now