![]() To set disconnect on logout to true changes to preference settings require sudo to obtain elevated privileges.Īlthough some of these controls and preferences are exposed to the user, and some are accessible in other tools, this airport tool could well come in handy, when you know what you’re doing. Sudo /System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport prefs DisconnectOnLogout=YES Shows the current preference settings for the first Airport interface, in my case returning ![]() ![]() System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport prefs debug – enables and configures Airport debug logging.sniff – captures 802.11 frames over a specified channel to /tmp (requires sudo).logger – monitors the Airport driver’s log facility.prefs – which displays the Airport preferences, and can be used to edit them in detail.If you don’t specify the interface to be used, it will use the first Airport interface (en1 perhaps), just as with the old command set. System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport interface verb Instead of -h, you will see the other side of this tool, which is used thus: System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -x This includes signal strength, noise, transmission rates, link authorisation, channel, and more. Is also pretty handy, as it reports full details for the first Airport interface in that Mac. System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -I Is probably most useful, as it reports the SSID, BSSID, RSSI (signal strength from -100 to 0), channel, and security information for all known base stations. System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -s Of these, the wireless broadcast scan using –psk –password= –ssid creates PSK from the given password pwd and SSID arg.-s performs a wireless broadcast scan, which can be directed if you provide a channel number as arg.-I prints the current status for the first Airport interface.-z dissociates the first Airport interface from any network.-c sets the first Airport interface to use the channel number given as arg.System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -hĪnd it offers you five conventional arguments: It doesn’t have a man file, of course, and is currently undergoing something of a mid-life crisis: it looks like two separate tools rolled into one. The tool is at /System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport but don’t be deterred by its lengthy path. This article is about a handy combination of Wi-Fi functions hidden away in one of Apple’s private frameworks, so its features could change without warning, and you must keep it a secret. You can never have too many tools, and when they come free in macOS – in Sierra, at least – so much the better.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |