Command Line Airport commands on MacOSX

by bram

$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

Supported arguments:
-c[] –channel=[] Set arbitrary channel on the card
-z –disassociate Disassociate from any network
-I –getinfo Print current wireless status, e.g. signal info, BSSID, port type etc.
-s[] –scan=[] Perform a wireless broadcast scan.
Will perform a directed scan if the optional 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= Specify a WPA password
–ssid= Specify SSID when creating a PSK
-h –help Show this help