Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a command line tool in Mac OS X that performs the equivalent of the iwconfig command in Linux.


kirkland@x220:~/src/byobu/byobu$ iwconfig wlan0
wlan0     IEEE 802.11abgn  ESSID:"serenity"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:11:22:33:44:55   
          Bit Rate=1 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-17 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:70   Missed beacon:0
share|improve this question
up vote 21 down vote accepted

ifconfig gives information about all interfaces, including WLAN. The WLAN interface is usually en1.

$ ifconfig en1
        ether 20:c9:d0:97:22:e9 
        inet6 fe80::22c9:d0ff:fe97:22e9%en1 prefixlen 64 scopeid 0x5 
        inet netmask 0xffffff00 broadcast
        media: autoselect
        status: active

airport -I gives information about WLAN interfaces (check out the man page for additional options)

$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I en1
     agrCtlRSSI: -68
     agrExtRSSI: 0
    agrCtlNoise: -85
    agrExtNoise: 0
          state: running
        op mode: station 
     lastTxRate: 54
        maxRate: 54
lastAssocStatus: 0
    802.11 auth: open
      link auth: wpa2-psk
          BSSID: 11:22:33:44:55:66
           SSID: serenity
            MCS: -1        channel: 6
share|improve this answer
Great, thanks. The airport command has the information I needed. I updated your answer with pasts of sample output, which is really what I needed. Cheers! – Dustin Kirkland Jan 29 '13 at 4:50
At least on our Macs here, /usr/sbin/airport is a symlink pointing to the /System/Library/... path. – patrix Jan 29 '13 at 17:19
Strange. I don't have that. Mac OS X 10.8.1. ls: /usr/sbin/airport: No such file or directory – Dustin Kirkland Jan 30 '13 at 5:00
Hmm, maybe I added it manually then. Anyway, thanks for adding the full path. – patrix Jan 30 '13 at 5:47
It's here /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resourc‌​es/airport – welldan97 Jun 30 '14 at 22:10

Your Answer


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.