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.

How can I print out information about a Wireless Access Point in range? Can I for example get the MAC address?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

You can use

iwlist <interface> scan

For example:

iwlist wlan0 scan

Also, using pipes and egrep, and practicing a little with iwlist scan, you can extract the info you want:

iwlist wlan0 scan | egrep 'Address:|ESSID:'
share|improve this answer

If you are on Linux then you can usually just do

ifconfig 

or

iwconfig

to get info on your NIC. To scan you usually do

iwlist wlan0 scan

to get info on the wireless access points in range. In this case your wireless interface has already been identified using ifconfig (or iwconfig) as wlan0.

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.