Posted: Fri Oct 30, 2020 8:19 Post subject: List all connected devices
Hi.
I'm trying to find a way to list all devices connected to my router. I've googled around all morning and can't seem to find a really good way.
The closest I have come is "wl assoclist", but it doesn't list all devices, just some of them. Also I see people recommending "wl_atheros", which doesn't even exist (probably because I'm on Broadcom, right?).
I thought maybe I need to tell wl which adapter to look at, but everything I've tried to send to the -a and -i arguments gives me "wl driver adapter not found".
One suggested option is relying of arp, but that's no good, I want all connected devices, not only those in arp.
Replying myself here, I think I actually solved it.
It seems "wl assoclist" actually returns a list just of the devices on the first interface, which is "eth1". So I have to do a "wl -i eth2 assoclist" to get the rest of them. Combined those commands seem to get me the full list!
login with shh to your router and use arp command:
Code:
#arp -a
Thanks for your answer. Not really useful though as I stated in my first post specifically that i do NOT want the devices from arp (which is not the same thing as the connected devices) and as I mentioned in my second post I've already solved the problem.
I ended up doing the following to get the list I need:
I'm in search of an accurate list of wired clients, so I might be able to help you in your search here even though it looks like you found what you need.
Take a look at the script at:
Code:
cat /user/sbin/clients
I have an R7000 so I use eth1, eth2, and also wl0.1, and wl1.1 for the virtual APs (VAPs) that make up my guest wireless to get counts of connected wireless devices. If your router is a tri-band, then there might be eth3 and wl2.1--not sure though as mine is dual-band.