There are premade views (do \d and then SELECT * from view_…),
but you can query more raw data too.
Current clients
SELECT
essid,
ap,
channel,
data->>'hostname' hostname,
data->>'mac' mac,
data->>'rssi' rssi
FROM sta_table_latest
ORDER BY essid,ap,channel,hostname,mac;
Active radios
SELECT
ap,
data->>'name' AS name,
data->>'radio' AS radio,
CASE data->>'is_11ac' WHEN 'true' THEN TRUE ELSE FALSE END as "802.11ac",
data->>'max_txpower' AS power
FROM radio_table_latest
ORDER BY ap, name;
One client’s RSSI over time
SELECT
ts,
(data->>'rssi')::int rssi
FROM sta_table
WHERE data->>'mac'='11:22:33:44:55:66'
ORDER BY ts;
rssi of clients over time
SELECT
ap,
ts,
essid,
channel,
data->>'hostname' hostname,
data->>'mac' mac,
data->>'rssi' rssi
FROM sta_table
ORDER BY data->>'mac',ts;
Show days when there was at least one DFS event forcing a change of channel
ubntools
Copyright 2017 Google Inc.
This is not a google product.
Tools to do fun things with ubiquity gear.
MOVED TO https://github.com/ThomasHabets/ubntools
HOWTO
1. Log in to AP
2. Generate SSH key
3. Add this key to server’s
~/.ssh/authorized_keysTry a one-time upload by uploading
ap-uploader.shto the AP and running:4. Set up regular data uploads
On the AP, run:
Make sure files are being uploaded to the server every 10 minutes. If it all looks good then the AP setup is done. At least until it reboots.
5. On server: Create database
6. Import data
7. Query data
8. Generate channel utilization graph
Interesting queries
There are premade views (do
\dand thenSELECT * from view_…), but you can query more raw data too.Current clients
Active radios
One client’s RSSI over time
rssi of clients over time
Show days when there was at least one DFS event forcing a change of channel