→ Celebrate SysAdmin Day 2024 with Lansweeper Enter our Giveaway here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vqT4cDoP9iXyMZw
Champion Sweeper
I'm currently using the following report to identify new assets discovered in a location, in order to discover anything that pops up:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
Coalesce(tsysOS.OSname, tblMacOSInfo.SystemVersion, tblLinuxSystem.OSRelease)
As OS,
tblAssets.SP,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.Firstseen
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
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblMacOSInfo On tblAssets.AssetID = tblMacOSInfo.AssetID
Left Join tblLinuxSystem On tblAssets.AssetID = tblLinuxSystem.AssetID
Where tsysIPLocations.IPLocation = 'UNIQUE LOCATION NAME' And
tblAssets.Firstseen > GetDate() - 7 And tblState.Statename = 'Active'
Order By tblAssets.IPNumeric,
tblAssets.Domain,
tblAssets.AssetName

The output provides the expected list of newly-discovered assets seen by Lansweeper in the past 7 days, but I realized it does not include existing assets if they were relocated from another IP location to this IP location.

Is it possible to tweak this to report for both newly-discovered as well as existing assets that may have been relocated here, to identify any delta?
1 REPLY 1
vqT4cDoP9iXyMZw
Champion Sweeper
Or looking at it a different way, is it possible to report on any asset that has tsysIPLocations.IPLocation changed to be 'UNIQUE LOCATION NAME' in the past week?