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: 1,828
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 Windows 7 EOL
by  Esben.D   Go to last post Go to first unread
Last post: Today at 12:22:43 PM(UTC)
Lansweeper Patch Tuesday report, last 3 months
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 10:55:07 AM(UTC)
Lansweeper Thunderbird 68 Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: Today at 8:41:29 AM(UTC)
Lansweeper Drive Encryption statuses
by  JacobH  
Go to last post Go to first unread
Last post: Yesterday at 5:41:10 PM(UTC)
Report Center Local admin group report based on domain role
by  JacobH   Go to last post Go to first unread
Last post: Yesterday at 5:24:13 PM(UTC)
Lansweeper Number of scanned IPs
by  wayneRex  
Go to last post Go to first unread
Last post: Yesterday at 10:21:01 AM(UTC)
Lansweeper Ticket Summary by Agent?
by  susan.starr   Go to last post Go to first unread
Last post: 9/17/2019 4:41:26 PM(UTC)
Report Center Virtual machines and their host
by  klaus  
Go to last post Go to first unread
Last post: 9/17/2019 8:44:57 AM(UTC)