WiFi monitoring

                    airport interface [-Ixh] [-P --password=ppp --ssid=ssid] [-c chan] [-s [aaa]] [verb]

If interface is not specified, uses the first AirPort interface on the system.

     agrCtlRSSI: -64
     agrExtRSSI: 0
    agrCtlNoise: -90
    agrExtNoise: 0
          state: running
        op mode: station 
     lastTxRate: 65
        maxRate: 144
lastAssocStatus: 0
    802.11 auth: open
      link auth: wpa2-psk
          BSSID: 0:7f:28:cc:a9:f4
           SSID: disabled
            MCS: 7
        channel: 6
-s ssid
--scan ssid
takes 3 seconds
      SSID BSSID MAC         RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
Totaro-2.4 dc:fe:07:af:73:28 -89  11      Y  US WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP) 
     XPB74 70:f1:96:17:8e:87 -89  6       Y  US WPA(PSK/AES/AES) WPA2(PSK/AES/AES) 
     BW52K 00:26:b8:a1:ee:fc -85  6       Y  US WEP
     FEHV1 00:26:62:ee:0a:14 -87  6       N  US WEP
 T4MP4_EXT c0:ff:d4:ca:15:df -83  6       Y  US WPA2(PSK/AES/AES) 
  disabled 00:7f:28:cc:a9:f4 -64  6       Y  US WPA(PSK/AES/AES) WPA2(PSK/AES/AES) 
channel: 1
Create PSK from pass phrase and SSID. arguments must be specified:
--password=password WPA password
output info as XML

prefs with no key value pairs:
Unable to retrieve JoinMode
Preferences are configured using key=value .
In addition to above:
JoinMode: Automatic    Preferred    Ranked    Recent    Strongest
JoinModeFallback: Prompt    JoinOpen    KeepLooking    DoNothing
RequireAdmin: Yes No
logger Monitor the driver's logging facility.
sniff chan Captures files are saved to /tmp/airportSniffxxxxx.cap.: Requires root requires .cap decodder.
debug Enable debug logging. Enabled by prefixing with +, disabled with -
AirPort Userland Debug Flags DriverDiscovery, DriverEvent, Info, SystemConfiguration, UserEvent, PreferredNetworks, AutoJoin, IPC, Scan, 802.1x, Assoc, Keychain, RSNAuth, WoW, P2P, Roam, BTCoex
AllUserland Enable/Disable all userland debug flags DriverInfo, DriverError, DriverWPA, DriverScan, AllDriver - Enable/Disable all driver debug flags
AirPort Driver Vendor Flags VendorAssoc, VendorConnection, AllVendor - Enable/Disable all vendor debug flags
AirPort Global Flags LogFile Save to /var/log/wifi.log


Sniffing on channel 1:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport en1 sniff 1

Configuring preferences

 sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport  en1 \
         prefs JoinMode=Preferred RememberRecentNetworks=NO RequireAdmin=YES
man airport Not available as of 6/20/16! this documentation based on help.