Usage: Airport <interface> <verb> <Options>
<Interface>
If an interface is not specified, airport will use the first airport interface on the system.
<Verb is one of the following:
Prefs if specified with no key value pairs, displays a subset of airport preferences
The specified interface.
Preferences may be configured using key = Value Syntax. Keys and possible values are specified below.
Boolean settings may be configured using 'yes' and 'no '.
Disconnectonlogout (Boolean)
Joinmode (string)
Automatic
Preferred
Ranked
Recent
Strongest
Joinmodefallback (string)
Prompt
Joinopen
Keeplooking
Donothing
Rememberrecentnetworks (Boolean)
Requireadmin (Boolean)
Requireadminibss (Boolean)
Requireadminnetworkchange (Boolean)
Requireadminpowertoggle (Boolean)
Wowenabled (Boolean)
Logger monitor the driver's logging facility.
Sniff if a channel number is specified, airportd will attempt to configure the interface
To use that channel before it begins sniffing 802.11 frames. captures files are saved to/tmp.
Requires super user privileges.
Debug enable debug logging. A debug log setting may be enabled by prefixing it with a' + ', and disabled
By prefixing it with '-'.
Airport userland debug flags
Driverdiscovery
Driverevent
Info
Systemconfiguration
Userevent
Preferrednetworks
Autojoin
IPC
Scan
802.1x
Assoc
Keychain
Rsnauth
Wow
Alluserland-enable/disable all userland debug flags
Airport driver common 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 all airport logs to/var/log/airport. Log
<Options> is one of the following:
No options currently defined.
Examples:
Grouping preferences (requires admin privileges)
Sudo airport EN1 prefs joinmode = preferred rememberrecentnetworks = No requireadmin = Yes
Sniffing on channel 1:
Airport EN1 sniff 1
Legacy commands:
Supported arguments:
-C [<Arg>] -- channel = [<Arg>] Set arbitrary channel on the card
-Z -- disassociate from any network
-I -- getinfo print current wireless status, e.g. Signal info, bssid, port type etc.
-S [<Arg>] -- Scan = [<Arg>] perform a wireless broadcast scan.
Will perform a directed scan if the optional <Arg> is provided
-X -- XML print info as XML
-P -- PSK create PSK from specified pass phrase and SSID.
The following additional arguments must be specified with this command:
-- Password = <Arg> specify a WPA password
-- SSID = <Arg> specify SSID when creating a PSK
-H -- help show this help
Example:
Sudo/system/library/privateframeworks/apple80211.framework/resources/airport EN1 prefs requireadminpowertoggle = No