→ Having trouble accessing our new support portal or creating a ticket? Please notify our team here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bwaddell
Engaged Sweeper
My apologies if this is a common question - my searches have brought up a lot of results, but none of them match what I need. I am new to Lansweeper, but experienced in SQL.

In our environment, we use desktops, laptops and thin clients of both, and we need a simple way to separate them in reports. Currently, the admins go in and manually exclude models from each report, but this is cumbersome and easy to miss reports or models.

Is the simplest solution to go in and manually update a custom field with a value that could then be searched (i.e. 1 = desktop, 2 = laptop, 3 = thin client desktop, etc)? And if so, would it be possible to create a query that we could run to update that field based on the model of the computer?

Or does this already exist?

Thanks for your help.
2 REPLIES 2
Thor
Engaged Sweeper II
Same trouble here, in specific with thin clients; our solution was >

SNMP client and interrogation for all items takes place.
SNMP OID added for the thin clients, as 'thin client'.

Report filtered by 'AssetTypName'

Works like a charm, w/out the need of amending vanilla LS reports
David_G
Lansweeper Employee
Lansweeper Employee
You can include the chassis type (e.g. Desktop, Laptop, etc.) from the database table tblSystemEnclosure. This table contains information about a physical system enclosure or chassis from Windows computers pulled from the Win32_Systemenclosure WMI class. We have added a sample report below which will also give back the full chassis name for an asset. Instructions for adding this report to your Lansweeper installation can be found here.

If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
TsysChassisTypes.ChassisName As [Computer Type],
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Where tblAssetCustom.State = 1