Notification

Icon
Error

AWS: Instance Network Interfaces (Built-in)

Posted: Tuesday, March 5, 2019 1:20:36 PM(UTC)
Esben.D

Esben.D

Member Administration Original PosterPosts: 2,187
0
Like
The report below gives back a list of AWS Instances and their network interfaces.

The report will only list assets when the following criteria are met:
  • You have Lansweeper 7.1 or higher.
  • There is AWS Instance data scanned.
  • The asset has the active state.

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tsysAssetTypes.AssetTypeIcon10 As icon,
  tblAssets.IPAddress,
  tsysIPLocations.IPLocation,
  tblAssetCustom.Manufacturer,
  tblAWSInstance.InstanceId,
  tblAWSInstance.InstanceType,
  tblAWSInstance.Platform,
  tblAWSInstance.Region,
  tblAWSInstance.State,
  tblAWSNetworkInterface.NetworkInterfaceId,
  tblAWSNetworkInterface.PrivateIPAddress,
  tblAWSNetworkInterface.PrivateDNSName,
  tblAWSNetworkInterface.MacAddress,
  tblAWSNetworkInterface.Status,
  tblAWSNetworkInterface.InterfaceType,
  tblAWSIpAddress.IpAddress As InterfaceIpAddress,
  tblAWSIpAddress.Type
From tblAssets
  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 tblAWSInstance On tblAWSInstance.AssetId = tblAssets.AssetID
  Inner Join tblAWSNetworkInterface On tblAWSNetworkInterface.AWSInstanceId =
    tblAWSInstance.AWSInstanceId
  Inner Join tblAWSIpAddress On tblAWSIpAddress.AWSNetworkInterfaceId =
    tblAWSNetworkInterface.AWSNetworkInterfaceId
Where tblState.Statename = 'Active'
Order By tblAWSInstance.Region,
  tblAssets.IPNumeric,
  tblAssets.AssetName,
  tblAWSNetworkInterface.NetworkInterfaceId,
  InterfaceIpAddress

Active Discussions

Lansweeper mail reports
by  Andy.S   Go to last post Go to first unread
Last post: 7/1/2022 2:38:18 PM(UTC)
Lansweeper Adding an "Employee ID" column to an asset report
by  ABaker  
Go to last post Go to first unread
Last post: 6/30/2022 3:06:54 PM(UTC)
Lansweeper Firefox 102 & ESR 91.11
by  Esben.D   Go to last post Go to first unread
Last post: 6/30/2022 8:12:07 AM(UTC)
Lansweeper Performance report not shows result
by  NoraD  
Go to last post Go to first unread
Last post: 6/28/2022 7:52:27 AM(UTC)
Lansweeper Duplicate AD Users
by  Randy Costa   Go to last post Go to first unread
Last post: 6/27/2022 5:25:04 PM(UTC)
Lansweeper Multiple Devices Owned by Users (asset relations)
by  Adrian Scott  
Go to last post Go to first unread
Last post: 6/22/2022 5:34:51 PM(UTC)