Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have an Angstrom Linux device acting as an access point, running hostapd, dhcpd, which works fine. Can I get a list of devices connected to the Wi-Fi? I know I can get the DHCP leases, but I need to know which devices connect through wlan0. I've tried this (iwlist has options):

iwlist wlan0 ap
iwlist wlan0 accesspoints
iwlist wlan0 peers

but all return:

wlan0     Interface doesn't have a list of Peers/Access-Points

iwconfig, iwgetid, iwpriv and iwspy are also present in /sbin, but don't seem to have options to display the client list.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

You should use iw dev wlan0 station dump as root

share|improve this answer
    
Thanks - I don't see this for my Arm 9 Angstrom yet, but I'll go look for it –  Jeff Jun 10 '12 at 15:04
    
Perhaps you can compile from source, assuming you have enough space or a CF for temporary storage –  Mike Pennington Jun 10 '12 at 22:01

take a look here http://wiki.openwrt.org/doc/faq/faq.wireless#how.to.get.a.list.of.connected.clients

and you will see below

hope that help you

share|improve this answer
3  
It is better to provide the steps here, and use the link as a reference for further details. That way your answer does not loose all of it value when the link becomes invalid. –  Anthon Jan 3 at 17:01

You could Use "arp" as root:

$ sudo arp
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.