cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Paul_Jose
Engaged Sweeper
I want to retrieve all the software installed in all computers using an IP address range or based on a domain. Is there a way to get that report.
1 REPLY 1
Nick_VDB
Champion Sweeper III
The report below should give back the information that you are after. To set the IP Range we use the IPNumeric field in the tblAssets table. This will alway contain the IP address with 12 digits and no dots, for example:

IP Address = 192.168.1.1 => IP Numeric = 192168001001

You can replace the IP numeric values that we added as IP range in the code below, we highlighted the IP numeric values in yellow.

We added a second report where you can give in the domain name. This field is also highlighted in yellow in the second report.

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.


Software By IP Range:

Select Top 1000000 tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
Count(tblSoftware.AssetID) As Total
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1 And tblAssets.IPNumeric >= 192168001001
And tblAssets.IPNumeric <= 192168001254
Group By tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
Order By Total Desc


Software by Domain:

Select Top 1000000 tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
Count(tblSoftware.AssetID) As Total
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1 And tblAssets.Domain = 'MyDomain'
Group By tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
Order By Total Desc