Mac OS X: Airport Command Parameters

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.