→ The Lansweeper Customer Excellence Awards 2024 - Submit Your Project Now! Learn More & Enter Here
‎03-01-2016 10:50 PM
Solved! Go to Solution.
‎03-05-2016 03:34 PM
Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblNetwork.IPAddress,
tblNetwork.MACaddress,
tblAssets1.AssetName As Switch,
tblSNMPInfo.IfIndex As Port,
tblSNMPInfo.ifName As PortName,
tblSNMPInfo.IfDescription As PortDescription
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Left Join tblAssetMacAddress On tblAssets.AssetID = tblAssetMacAddress.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblSNMPAssetMac On tblSNMPAssetMac.AssetMacAddress =
tblAssetMacAddress.Mac
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblSNMPAssetMac.AssetID
Left Join tblSNMPInfo On tblSNMPInfo.AssetID = tblSNMPAssetMac.AssetID And
tblSNMPInfo.IfIndex = tblSNMPAssetMac.IfIndex
Where tblAssetCustom.State = 1 And tblNetwork.IPEnabled = 1
Order By tblAssets.Domain,
tblAssets.AssetName
‎03-05-2016 03:34 PM
Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblNetwork.IPAddress,
tblNetwork.MACaddress,
tblAssets1.AssetName As Switch,
tblSNMPInfo.IfIndex As Port,
tblSNMPInfo.ifName As PortName,
tblSNMPInfo.IfDescription As PortDescription
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Left Join tblAssetMacAddress On tblAssets.AssetID = tblAssetMacAddress.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblSNMPAssetMac On tblSNMPAssetMac.AssetMacAddress =
tblAssetMacAddress.Mac
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblSNMPAssetMac.AssetID
Left Join tblSNMPInfo On tblSNMPInfo.AssetID = tblSNMPAssetMac.AssetID And
tblSNMPInfo.IfIndex = tblSNMPAssetMac.IfIndex
Where tblAssetCustom.State = 1 And tblNetwork.IPEnabled = 1
Order By tblAssets.Domain,
tblAssets.AssetName
‎05-03-2016 04:20 PM
Susan.A wrote:
I've included a sample report below, which you can add to your Lansweeper installation by following these instructions.Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblNetwork.IPAddress,
tblNetwork.MACaddress,
tblAssets1.AssetName As Switch,
tblSNMPInfo.IfIndex As Port,
tblSNMPInfo.ifName As PortName,
tblSNMPInfo.IfDescription As PortDescription
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Left Join tblAssetMacAddress On tblAssets.AssetID = tblAssetMacAddress.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblSNMPAssetMac On tblSNMPAssetMac.AssetMacAddress =
tblAssetMacAddress.Mac
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblSNMPAssetMac.AssetID
Left Join tblSNMPInfo On tblSNMPInfo.AssetID = tblSNMPAssetMac.AssetID And
tblSNMPInfo.IfIndex = tblSNMPAssetMac.IfIndex
Where tblAssetCustom.State = 1 And tblNetwork.IPEnabled = 1
Order By tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now