Can the R9000 list the link speeds of all connected devices?

3 posts / 0 new
Last post
_chris.leonard_
_chris.leonard_'s picture
Can the R9000 list the link speeds of all connected devices?

I am afraid there may be an easy answer to this, but I have not been able to find it. so forgive me if this is asked and answered somewhere already.

I have ssh (dropbear) installed on my R9000, running the current Voxel firmware. Is there a shell command that will show me the current actual link speed negotiated between the router and each device? I want to see if all of my 802.11ac devices are connecting at the same rate or at different rates at the link level.

Thanks very much,
Chris

_chris.leonard_
_chris.leonard_'s picture
I should have mentioned that

I should have mentioned that the firmware is Firmware: DD-WRT v3.0-r36020M std (05/25/18).

Thanks,
Chris

_chris.leonard_
_chris.leonard_'s picture
I have answered this question

I have answered this question myself by means of a post I saw in another forum. One post (https://serverfault.com/a/249370/153171) just pointed out that you can use the arp command and then pull off the hostnames it displays and use those to pull info from /tmp/dhcp.leases. That's a good solution if you give static leases to everyone on your router and want to define "connected" as being the same as "having an entry in the router's arp table" (which is close to all that thread was looking for). I pulled their script and expanded on it a bit.

However, another commenter on the same thread (https://serverfault.com/a/776302/153171) supplied what I was really looking for. For my router (Netgear R9000 running Kong DD-WRT), the command iw dev ath0 station dump gives a lot of useful output. It has a section for each associated station, including the current rx and tx rates. I will be scripting this up as well. This person also mentioned the command iwinfo , which they say can run on routers "universally." If I run  iwinfo ath0 assoclist I am given a short-and-sweet summary of each associated station. Of course, I need to run each command once for each wireless network adapter on my router. In my case that means running for ath0 and ath1 since I don't use the 802.11AD radio.

The downside to using the commands recommended by the second person is that they expose the MAC address only. I'll be scripting something so that I can use that address to pull in the IP as well.

How does one post code on this forum? I don't see anything in the markup buttons. If someone tells me the "right" way to post code, I will post back here when I have useful scripts.

Cheers,
Chris 

Thanks,
Chris