Skip to content

Application ShowScannedStationsStatistics

Jose Saldana edited this page Jul 7, 2017 · 6 revisions

The code is here.

An AP uses its secondary interface to scan all the channels, and obtains all the frames heard, and their statistics. This information can then be used for different purposes e.g. before running a channel assignment algorithm.

This is done with the auxiliary wireless interface.

The output by the screen is like this (three agents scanning in channel 8):

[ShowScannedStationsStatistics] Scanning channel 8
[ShowScannedStationsStatistics] Request for scanning during the interval of  5000 ms in SSID *
[ShowScannedStationsStatistics] Agent: /192.168.1.13

[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.13 in channel 8
	Station MAC: 00:19:E0:68:16:E0
		num packets: 3
		avg rate: 1000 kbps
		avg signal: -51.5490195999 dBm
		avg length: 42 bytes
		air time: 1.008 ms
		init time: 1497610021.134713550 sec
		end time: 1497610021.807581862 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment
(...)
	Station MAC: 00:15:AF:E0:13:5A
		num packets: 3
		avg rate: 1000 kbps
		avg signal: -70 dBm
		avg length: 42 bytes
		air time: 1.008 ms
		init time: 1497610021.415346643 sec
		end time: 1497610021.504648633 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment

[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.15 in channel 8
	Station MAC: C0:C9:76:89:88:CE
		num packets: 1
		avg rate: 1000 kbps
		avg signal: -90 dBm
		avg length: 42 bytes
		air time: 0.336 ms
		init time: 1497610023.001125465 sec
		end time: 1497610023.001264462 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment
(...)
	Station MAC: 84:16:F9:16:61:EE
		num packets: 70
		avg rate: 1000 kbps
		avg signal: -52.0263351977 dBm
		avg length: 111.885714286 bytes
		air time: 62.656 ms
		init time: 1497610017.985176666 sec
		end time: 1497610023.823606603 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment

[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.14 in channel 8
	Station MAC: 00:19:E0:68:16:E0
		num packets: 3
		avg rate: 1000 kbps
		avg signal: -50 dBm
		avg length: 42 bytes
		air time: 1.008 ms
		init time: 1497610021.135052241 sec
		end time: 1497610021.700429284 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment

In the poolfile you can specify a filename, and a file will be created with this content:

[ShowScannedStationsStatistics] External Monitoring Table
[ShowScannedStationsStatistics] ================
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Scanning channel 1
[ShowScannedStationsStatistics] Request for scanning during the interval of  5000 ms in SSID *
[ShowScannedStationsStatistics] Agent: /192.168.1.13
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.13 in channel 1
	Station MAC: 00:22:6B:9C:94:B5
		num packets: 8
		avg rate: 1000 kbps
		avg signal: -74.8811663902 dBm
		avg length: 75 bytes
		air time: 4.8 ms
		init time: 1499344829.866023894 sec
		end time: 1499344833.966264438 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment

	Station MAC: 68:C4:4D:FE:09:F4
		num packets: 1
		avg rate: 1000 kbps
		avg signal: -80 dBm
		avg length: 42 bytes
		air time: 0.336 ms
		init time: 1499344829.213198179 sec
		end time: 1499344829.213616994 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment
(...)

[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.15 in channel 1
	Station MAC: 00:C0:CA:72:76:62
		num packets: 1
		avg rate: 11000 kbps
		avg signal: -90 dBm
		avg length: 84 bytes
		air time: 0.0610909090909 ms
		init time: 1499344828.984932476 sec
		end time: 1499344828.985072334 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment

(...)

[ShowScannedStationsStatistics] Scanning channel 5
[ShowScannedStationsStatistics] Request for scanning during the interval of  5000 ms in SSID *
[ShowScannedStationsStatistics] Agent: /192.168.1.13
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.13 in channel 5
	Station MAC: 00:80:5A:5C:4B:0C
		num packets: 1
		avg rate: 1000 kbps
		avg signal: -80 dBm
		avg length: 136 bytes
		air time: 1.088 ms
		init time: 1499344857.167473254 sec
		end time: 1499344857.167612083 sec
		AP of client: none
		Channel of AP: none
		Code: non-Wi-5 Equipment