• Mac OS X,  Mass Deployment

    Managing Airport Settings from the Command Line

    From time to time we will end up writing shell scripts that do a number of tasks with airport interfaces in Mac OS X, including automatically detecting networks and disabling the card based on TCP/IP settings/location, querying signal strength for positioning of WAPs and joining specific wireless networks.  As such, a couple of commands keep coming up, since the airport card in a Mac can be controlled in a number of ways from the command line.  First and foremost – it can be enabled and disabled using the networksetup command, located in /usr/sbin.  The option to use with the command is -setairportpower which is boolean as on or off.  So to…