‎05-05-2013 12:46 PM
Solved! Go to Solution.
‎05-14-2013 06:36 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Lastseen,
tblAssetCustom.Manufacturer
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 (tsysIPLocations.IPLocation Like '%lab%' And tblAssetCustom.State = 1 And
tblAssetCustom.Model Not Like '%virtual%' And tblAssets.Assettype = -1) Or
(tsysAssetTypes.AssetTypename = 'linux' And tsysIPLocations.IPLocation Like
'%lab%' And tblAssetCustom.Manufacturer Not Like '%vmware%' And
tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%') Or
(tsysAssetTypes.AssetTypename = 'xen server' And
tsysIPLocations.IPLocation Like '%lab%' And tblAssetCustom.Manufacturer Not Like '%vmware%' And tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%')
Order By tblAssets.IPAddress
‎05-14-2013 06:36 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Lastseen,
tblAssetCustom.Manufacturer
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 (tsysIPLocations.IPLocation Like '%lab%' And tblAssetCustom.State = 1 And
tblAssetCustom.Model Not Like '%virtual%' And tblAssets.Assettype = -1) Or
(tsysAssetTypes.AssetTypename = 'linux' And tsysIPLocations.IPLocation Like
'%lab%' And tblAssetCustom.Manufacturer Not Like '%vmware%' And
tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%') Or
(tsysAssetTypes.AssetTypename = 'xen server' And
tsysIPLocations.IPLocation Like '%lab%' And tblAssetCustom.Manufacturer Not Like '%vmware%' And tblAssetCustom.State = 1 And tblAssetCustom.Model Not Like '%virtual%')
Order By tblAssets.IPAddress
‎05-09-2013 10:29 AM
‎05-08-2013 09:55 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now