Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
* [Cerowrt-devel] figuring out who's actually on an ap
@ 2013-01-26 18:22 Dave Taht
  2013-01-26 19:00 ` Dave Taht
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Taht @ 2013-01-26 18:22 UTC (permalink / raw)
  To: cerowrt-devel

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

Once upon a time it was possible to write quick and dirty tools in shell.
You used to just be able to open a port, write a tiny little daemon, and
go. And we used to have handy tools like rwho and finger to figure out who
was online, ruptime to check uptime, etc, etc.

That's too insecure nowadays...
so we have 3 different levels of snmp which you can use (if you can secure
it), and
run a shell command from that, remotely, then parse... or use ssh, and
parse.

And then we have dhcp, which hands out leases, but is not tied to how wifi
goes up
and down.

This morning I had a need to figure who was actually on a couple cerowrt
APs,
and a few statistics as to their connected rate...

I haven't got so as figuring out how to do all that via snmpd yet, but as
this uses
an obscure feature of the mac802.11 stack, I thought I'd document this much.

If there is a better way, a mib, something, let me know....

#!/bin/sh
# rup: quickly see whos really on the wifi

A=`ls /sys/kernel/debug/ieee80211/phy*/netdev:*/stations | \
    cut -f8 -d/ | tr '\n' '|'`
# cut off last |
egrep ${A%?} /tmp/dhcp.leases | awk '{print $3 " " $4 }'




-- 
Dave Täht

Fixing bufferbloat with cerowrt:
http://www.teklibre.com/cerowrt/subscribe.html

[-- Attachment #2: Type: text/html, Size: 1472 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-26 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-26 18:22 [Cerowrt-devel] figuring out who's actually on an ap Dave Taht
2013-01-26 19:00 ` Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox