Notification

Icon
Error

AWS: Instance Product Codes (Built-in)

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

Esben.D

Member Administration Original PosterPosts: 1,930
0
Like
The report below gives back a list of AWS Instances and their AWS product code.

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 AWS instance has product code data.
  • 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,
  tblAWSProductCode.ProductCodeId,
  tblAWSProductCode.ProductCodeType
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 tblAWSProductCode On tblAWSProductCode.AWSInstanceId =
    tblAWSInstance.AWSInstanceId
Where tblState.Statename = 'Active'
Order By tblAWSInstance.Region,
  tblAssets.IPNumeric,
  tblAssets.AssetName,
  tblAWSProductCode.ProductCodeId

Active Discussions

Lansweeper Duplicate Asset 1 Mac address, 1 domain\computer\1
by  jstrong71   Go to last post Go to first unread
Last post: Today at 9:16:58 PM(UTC)
Lansweeper Dell Service Tag
by  cycleheat  
Go to last post Go to first unread
Last post: Today at 5:07:22 PM(UTC)
Lansweeper VM use 2 licence asset
by  PhilippeC.   Go to last post Go to first unread
Last post: Today at 4:52:33 PM(UTC)
Lansweeper Windows Defender AV
by  Mikey!  
Go to last post Go to first unread
Last post: Yesterday at 4:32:50 PM(UTC)
Lansweeper Deployment Package Successful but Log error
by  CyberCitizen   Go to last post Go to first unread
Last post: Yesterday at 12:23:38 AM(UTC)
Lansweeper Dynamic Groups - Mass edit fields
by  confablab  
Go to last post Go to first unread
Last post: 11/8/2019 6:25:36 PM(UTC)
Lansweeper LSAgent Install switches
by  Ryan.G   Go to last post Go to first unread
Last post: 11/8/2019 3:35:31 PM(UTC)
Lansweeper Static Group status
by  Ryan.G  
Go to last post Go to first unread
Last post: 11/8/2019 3:31:59 PM(UTC)