Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active February 19, 2017 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmorley/74f97ba9d267f5eb9eea5c43490ca337 to your computer and use it in GitHub Desktop.
Save simonmorley/74f97ba9d267f5eb9eea5c43490ca337 to your computer and use it in GitHub Desktop.
SocketMan - WiFi Device Stats Collector
{
"ssids": [{
"interface": "wlan1",
"noise": -95,
"signal": -48,
"bitrate": 140800,
"quality": 62,
"quality_max": 70,
"bssid": "CB:C7:80:00:00:00",
"ssid": "My Wi-Fi Network",
"channel": 48
}, {
"interface": "wlan0-1",
"noise": -95,
"signal": -49,
"bitrate": 84800,
"quality": 61,
"quality_max": 70,
"bssid": "CB:C7:80:77:BE:12",
"ssid": "My Wi-Fi Network",
"channel": 11
}, {
"interface": "mon0",
"noise": -95,
"quality": 2009740869,
"quality_max": 70,
"bssid": "CB:C7:80:77:BE:12",
"ssid": "",
"channel": 1
}],
"survey": [{
"mac": "C0:3E:0F:E4:15:5D",
"channel": 1,
"ssid": "SKY7BFD9",
"encryption": "WPA2 PSK (CCMP)",
"signal": -67,
"quality": 43,
"quality_max": 70,
"last_seen": 1330
}, {
"mac": "9C:D6:43:C5:A8:38",
"channel": 4,
"ssid": "TALKTALK-C5A838",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -75,
"quality": 35,
"quality_max": 70,
"last_seen": 1130
}, {
"mac": "5C:7D:5E:DC:8F:FA",
"channel": 11,
"ssid": "TALKTALK-DC8FF8",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -71,
"quality": 39,
"quality_max": 70,
"last_seen": 100
}, {
"mac": "22:03:D8:61:79:0A",
"channel": 11,
"ssid": "BTWifi-X",
"encryption": "WPA\/WPA2 802.1X (TKIP, CCMP)",
"signal": -70,
"quality": 40,
"quality_max": 70,
"last_seen": 110
}, {
"mac": "4C:09:D4:7F:81:D1",
"channel": 11,
"ssid": "EE-BrightBox-4qtfpt",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -65,
"quality": 45,
"quality_max": 70,
"last_seen": 220
}, {
"mac": "00:03:D8:61:79:0A",
"channel": 11,
"ssid": "BTHub3-FRGQ",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -68,
"quality": 42,
"quality_max": 70,
"last_seen": 170
}, {
"mac": "02:03:D8:61:79:0A",
"channel": 11,
"ssid": "BTWifi-with-FON",
"encryption": "none",
"signal": -76,
"quality": 34,
"quality_max": 70,
"last_seen": 40
}, {
"mac": "3C:81:D8:A0:C6:80",
"channel": 11,
"ssid": "SKY0C67F",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -87,
"quality": 23,
"quality_max": 70,
"last_seen": 60
}, {
"mac": "D4:40:F0:63:A5:BC",
"channel": 2,
"ssid": "TALKTALK63A5B5",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -79,
"quality": 31,
"quality_max": 70,
"last_seen": 1300
}, {
"mac": "7C:4C:A5:64:E2:05",
"channel": 6,
"ssid": "SKY4B400",
"encryption": "WPA2 PSK (CCMP)",
"signal": -82,
"quality": 28,
"quality_max": 70,
"last_seen": 740
}, {
"mac": "C0:3E:0F:C1:35:FD",
"channel": 11,
"ssid": "SKY3425D",
"encryption": "WPA2 PSK (CCMP)",
"signal": -86,
"quality": 24,
"quality_max": 70,
"last_seen": 270
}, {
"mac": "02:1D:AA:F7:AB:D8",
"channel": 6,
"ssid": "wifi",
"encryption": "WPA\/WPA2 802.1X (TKIP, CCMP)",
"signal": -88,
"quality": 22,
"quality_max": 70,
"last_seen": 840
}, {
"mac": "58:1F:28:2C:AD:30",
"channel": 7,
"ssid": "TALKTALK2CAD27",
"encryption": "WPA\/WPA2 PSK (TKIP, CCMP)",
"signal": -76,
"quality": 34,
"quality_max": 70,
"last_seen": 760
}, {
"mac": "00:A4:23:10:F7:70",
"channel": 11,
"ssid": "BTHub5-3Z6G",
"encryption": "WPA2 PSK (CCMP)",
"signal": -88,
"quality": 22,
"quality_max": 70,
"last_seen": 250
}],
"stations": [{
"interface": "wlan1",
"ssid": "My Wi-Fi Network",
"mac": "B8:09:8A:CF:1B:D5",
"inactive_time": 0,
"rx_packets": 10091105,
"tx_packets": 11837386,
"rx_bytes": 1242605569.0000001,
"tx_bytes": 11928594259,
"beacon_rx": 0,
"tx_retries": 391596,
"tx_failed": 0,
"beacon_loss": 0,
"signal": -44,
"signal_avg": -44,
"tx_bitrate": 216,
"rx_bitrate": 216,
"authorized": true,
"authenticated": true,
"associated": true,
"wmm": true,
"mfp": false,
"tdls": false,
"preamble": 2,
"conn_time": 891555,
"expected_tput": 54015
}, {
"interface": "wlan1",
"ssid": "My Wi-Fi Network",
"mac": "A4:77:33:E1:27:12",
"inactive_time": 3320,
"rx_packets": 266033,
"tx_packets": 320353,
"rx_bytes": 26967879,
"tx_bytes": 381658094,
"beacon_rx": 0,
"tx_retries": 20580,
"tx_failed": 5,
"beacon_loss": 0,
"signal": -52,
"signal_avg": -50,
"tx_bitrate": 65,
"rx_bitrate": 72,
"authorized": true,
"authenticated": true,
"associated": true,
"wmm": true,
"mfp": false,
"tdls": false,
"preamble": 1,
"conn_time": 78622,
"expected_tput": 32042
}, {
"interface": "wlan0-1",
"ssid": "My Wi-Fi Network",
"mac": "B8:E9:37:E9:66:24",
"inactive_time": 3130,
"rx_packets": 538095,
"tx_packets": 201178,
"rx_bytes": 79136419,
"tx_bytes": 53540500,
"beacon_rx": 0,
"tx_retries": 7472,
"tx_failed": 0,
"beacon_loss": 0,
"signal": -44,
"signal_avg": -43,
"tx_bitrate": 54,
"rx_bitrate": 24,
"authorized": true,
"authenticated": true,
"associated": true,
"wmm": false,
"mfp": false,
"tdls": false,
"preamble": 1,
"conn_time": 1224712,
"expected_tput": 38085
}, {
"interface": "wlan0-1",
"ssid": "My Wi-Fi Network",
"mac": "B8:E9:37:E9:66:9C",
"inactive_time": 4900,
"rx_packets": 654090,
"tx_packets": 935653,
"rx_bytes": 70457976,
"tx_bytes": 1284388708,
"beacon_rx": 0,
"tx_retries": 54230,
"tx_failed": 0,
"beacon_loss": 0,
"signal": -45,
"signal_avg": -44,
"tx_bitrate": 54,
"rx_bitrate": 24,
"authorized": true,
"authenticated": true,
"associated": true,
"wmm": false,
"mfp": false,
"tdls": false,
"preamble": 1,
"conn_time": 216470,
"expected_tput": 38085
}, {
"interface": "wlan0-1",
"ssid": "My Wi-Fi Network",
"mac": "70:81:EB:6E:60:51",
"inactive_time": 17370,
"rx_packets": 107,
"tx_packets": 25,
"rx_bytes": 12648,
"tx_bytes": 3289,
"beacon_rx": 0,
"tx_retries": 1,
"tx_failed": 0,
"beacon_loss": 0,
"signal": -54,
"signal_avg": -54,
"tx_bitrate": 115,
"rx_bitrate": 24,
"authorized": true,
"authenticated": true,
"associated": true,
"wmm": true,
"mfp": false,
"tdls": false,
"preamble": 1,
"conn_time": 187,
"expected_tput": 42937
}],
"device": {
"firmware": "b_160706_00",
"serial": "simon says",
"wan_name": "eth0.2",
"wan_gateway": "192.168.1.1",
"wan_ip": "192.168.1.136",
"machine_type": "EnGenius ESR900",
"tx_bytes": "2734254741",
"rx_bytes": "40491982419",
"uptime": 1239185,
"total_ram": 129191936,
"free_ram": 100573184,
"procs": 36
}
}
@simonmorley
Copy link
Author

The data we transmit from SocketMan - the daemon Cucumber Tony uses to control their devices.

https://github.com/cucumber-tony/SocketMan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment