Notification

Icon
Error

Windows: Network adapter speed (Built-in)

Posted: Tuesday, August 8, 2017 3:20:29 PM(UTC)
Nick.VDB

Nick.VDB

Member Lansweeper Developer Administration Original PosterPosts: 251
2
Like
Added in v.6.0.100

The report below lists Windows computers and gives back their network adapter speed.

The report will only list assets that meet all of the following criteria:
  • The computer's state is set to "active".
  • The computer has been successfully scanned at least once
  • The asset is a Windows computer.

Code:

Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tblAssets.Domain,
  tblAssets.Username,
  tblAssets.Userdomain,
  Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
  tblAssets.IPAddress,
  tsysIPLocations.IPLocation,
  tblAssetCustom.Manufacturer,
  tblAssetCustom.Model,
  tsysOS.OSname As OS,
  tblAssets.SP,
  tblAssets.Lastseen,
  tblAssets.Lasttried,
  tblNetworkAdapter.Name As NetworkAdapter,
  tblNetworkAdapter.Manufacturer As AdapterManufacturer,
  tblNetworkAdapter.MACAddress,
  tblNetworkAdapter.Speed As BitsPerSecond,
  tblNetworkAdapter.NetConnectionID As ConnectionID,
  tblNetworkAdapter.Lastchanged As LastChanged
From tblAssets
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblState On tblState.State = tblAssetCustom.State
  Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
  Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
  Inner Join tsysIPLocations On tsysIPLocations.LocationID =
    tblAssets.LocationID
  Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblState.Statename = 'Active' And Case tblNetworkAdapter.NetEnabled
    When 0 Then 'No' When 1 Then 'Yes' End = 'Yes'
Order By tblAssets.Domain,
  tblAssets.AssetName,
  NetworkAdapter
Argon0
#1Argon0 Member Posts: 37  
posted: 4/8/2019 4:37:21 PM(UTC)
Is this really bits per second? As I have a bunch of machines telling me they are running at 10 b/s then...

I'm going to assume it Mbit/s as there is another report (not built in) from 2015 which looks very similar bar that one line:

tblNetworkAdapter.Speed As BitsPerSecond,

reads

tblNetworkAdapter.Speed As SpeedInMb

Cheers
Esben.D
#2Esben.D Member Administration Posts: 1,765  
posted: 4/23/2019 1:32:42 PM(UTC)
The database documentation reads as follows:

Quote:
Estimate of the current bandwidth in bits per second. For endpoints which vary in bandwidth or for those where no accurate estimation can be made, this property should contain the nominal bandwidth.


In this case the report seems accurate. It might be that the other report you're referring to uses the field to calculate Mbit/s or MB/s.
Argon0
#3Argon0 Member Posts: 37  
posted: 4/23/2019 2:01:01 PM(UTC)
Possibly, but both reports have the same values in the same column.

Is this report giving actual bandwidth consumption at the moment the measurement is taken (pretty useless, unless done on a regular basis, and history is kept), OR is it giving the reported speed of the adapter (I suspect the latter), in which case I am pretty sure I don't have a single PC on the network which has an adapter speed of 10 bits per second.

Thanks

Active Discussions

Lansweeper Email attachments
by  krejar   Go to last post Go to first unread
Last post: 8/15/2019 10:15:07 PM(UTC)
Lansweeper HP Printer not showing correctly
by  Fathom  
Go to last post Go to first unread
Last post: 8/15/2019 4:14:55 PM(UTC)
Lansweeper Install LsAgent on Mac
by  Jonnym   Go to last post Go to first unread
Last post: 8/14/2019 10:14:08 AM(UTC)
Lansweeper Asset State Question
by  rtaylor  
Go to last post Go to first unread
Last post: 8/13/2019 5:53:24 PM(UTC)
Lansweeper LSAgent Version
by  roberto.m  
Go to last post Go to first unread
Last post: 8/13/2019 3:33:50 PM(UTC)
Lansweeper Lansweeper and snmp v3
by  Justin5135   Go to last post Go to first unread
Last post: 8/12/2019 7:07:22 PM(UTC)
Lansweeper Hikvision CCTV Cameras SNMP scan
by  thejduk  
Go to last post Go to first unread
Last post: 8/12/2019 2:34:05 PM(UTC)