I'm trying to gather information about surrounding access points

but can't find the right tools to do that.

For Linux there are tools like iwconfig and iwlist, but it looks like they are not available for MacOS.


I am not entirely sure what you want to achieve, but with /usr/sbin/airport you can obtain various information from wireless networks/your connection:


airport -s gives information about all the networks in range (such as RSSI strength).

airport -I gives information about your connection.

  • 1
    Looks like my Mac OS version does not have airport preinstalled, at least I don't have a airport executable. Running Mac OS X 10.7.4 – Hugo Sep 17 '12 at 19:10
  • my bad: you do have it: sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport see also: osxdaily.com/2007/01/18/… – Vincent Sep 17 '12 at 23:34

Under macOS 10.14.6, the SSID of the network you are currently connected to can be gathered with the following command:

ioreg -l -n AirPortDriver | grep IO80211SSID | sed 's/^.*= "\(.*\)".*$/\1/; s/ /_/g

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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