Get wifi details from macOS command line

GUI is great but CLI is awesome. Here are a few macOS CLI commands go get wifi details:

Get details about your current connection

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I

Sample output:

     agrCtlRSSI: -61
     agrExtRSSI: 0
    agrCtlNoise: -90
    agrExtNoise: 0
          state: running
        op mode: station
     lastTxRate: 162
        maxRate: 300
lastAssocStatus: 0
    802.11 auth: open
      link auth: wpa2-psk
          BSSID: 9c:3d:cf:d0:e2:34
           SSID: Maison_5GHz
            MCS: 12
        channel: 36,1

Get the list of an SSID broadcast scan (aka list of available visible SSID)


/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s

Sample output:

                            SSID BSSID             RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
                         VLAN805 54:3d:37:d1:b5:c8 -42  11      Y  US NONE
                         VLAN205 54:3d:37:91:b5:c8 -43  11      Y  US NONE
                         VLAN805 54:3d:37:f4:dc:18 -55  6       Y  US NONE
                         VLAN205 54:3d:37:b4:dc:18 -56  6       Y  US NONE
                      Maison_EXT a0:40:a0:57:d1:bd -36  1       Y  US WPA2(PSK/AES/AES)
                          Maison 9c:3d:cf:d0:e2:30 -47  1       Y  US WPA2(PSK/AES/AES)
                    ESPsoftAP_01 5e:cf:7f:fd:8c:50 -29  1       N  -- WPA2(PSK/AES,TKIP/TKIP)
                     Maison_5GHz 9c:3d:cf:d0:e2:34 -58  36      Y  US WPA2(PSK/AES/AES)

What is interesting with the above output is that you can see that for example the SSIDs VLAN205 and VLAN805 are being broadcasted by 2 different access points or radios at different frequencies.

Comments

Popular posts from this blog

Review of the electronicgeek.ca PRUSA I3 EG-1 3D printer (part 4)

Review of the electronicgeek.ca PRUSA I3 EG-1 3D printer (part 2)

Review of the electronicgeek.ca PRUSA I3 EG-1 3D printer (part 1)