List wireless clients connected to an access point

iw dev ath0 station dump
When the wireless card is in AP mode, list the users which are connected to the network. It uses the new nl80211 based CLI configuration utility for wireless devices. It can be used, for example, in a dd-wrt based router through a telnet session to obtain client information.
Sample Output
Station 00:21:6a:b9:c5:42 (on ath0)
        inactive time:  3230 ms
        rx bytes:       84293
        rx packets:     763
        tx bytes:       61854
        tx packets:     229
        tx retries:     56
        tx failed:      1
        signal:         -59 [-59, -68] dBm
        signal avg:     -61 [-62, -71] dBm
        tx bitrate:     86.7 MBit/s MCS 12 short GI
        rx bitrate:     78.0 MBit/s MCS 12
        expected throughput:    3.752Mbps
        authorized:     yes
        authenticated:  yes
        preamble:       short
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no

0
2017-01-09 00:50:49

These Might Interest You

What Others Think

fadzlimohdfadzli · 70 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: