Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mtterry13
Engaged Sweeper
I have multiple environments that I'm supporting. I have created an asset type called "Application Environments". I have then attached various Assets (Windows/Linux). I would like a report that shows each Application Environment with each of the children with the Childs IP, Description, Name, and OS.

Any assistance would be helpful.

Ideally

Applications Environment - X
Child 1 Name , OS, IP, Description
Child 2 Name , OS, IP, Description
Child 3 Name , OS, IP, Description
Child 4 Name , OS, IP, Description
Applications Environment - Y
Child 1 Name , OS, IP, Description
Child 2 Name , OS, IP, Description
Child 3 Name , OS, IP, Description
Child 4 Name , OS, IP, Description

etc.

Thanks in advance.



1 REPLY 1
mtterry13
Engaged Sweeper
I'm not super talented with SQL.. I came up with this though..

Select
(select AssetName from lansweeperdb.dbo.tblAssets where AssetID = TAP.AssetID) as Environment,
(select AssetName from lansweeperdb.dbo.tblAssets where AssetID = TAC.AssetID) as Server,
(select IPAddress from lansweeperdb.dbo.tblAssets where AssetID = TAC.AssetID) as ServerIP,
(select Caption from lansweeperdb.dbo.tblOperatingsystem where AssetID = TAC.AssetID) as WindowsOperatingSystem,
AR.Comments as Comments
from lansweeperdb.dbo.tblAssetRelations AS AR
FULL JOIN lansweeperdb.dbo.tblAssets TAP on AR.ParentAssetID = TAP.AssetID
FULL JOIN lansweeperdb.dbo.tblAssets TAC on AR.ChildAssetID = TAC.AssetID
FULL JOIN lansweeperdb.dbo.tblOperatingsystem OS on AR.ChildAssetID = OS.AssetID
where TAP.AssetName like'%%'
ORDER by
Environment;


Changing the Like for the Asset Prefix's im using for my custom assets. EDIT : Included OS column.

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now