View the statistics for a specific network protocol: Trace the routes without looking up names: System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -s System/Library/PrivateFrameworks/amework/Versions/A/Resources/airport -I Get information about the airport connection on your system: Ping the hostname 5 times and then stop the ping:Ĭustomize the source IP during your ping: Launchctl load -w /System/Library/LaunchDaemons/
Launchctl unload -w /System/Library/LaunchDaemons/
Socketfilterfw -t “/Applications/FileMaker Pro/FileMaker Pro.app/Contents/MacOS/FileMaker Pro”Īdd a route so that traffic for 10.0.0.0/32 communicates over the 10.0.9.2 network interface: Launchctl load /System/Library/LaunchDaemons/.plist launchctl load /System/Library/LaunchAgents/.plistĪllow an app to communicate outside the system through the application layer firewall: Launchctl unload /System/Library/LaunchAgents/.plist launchctl unload /System/Library/LaunchDaemons/.plist Obtain the dns servers used on the Wi-Fi interface: Networksetup -setmanual Wi-Fi 10.0.0.2 255.255.255.0 10.0.0.1Ĭonfigure the dns servers for a given network interface: Ipconfig set en1 BOOTP & ipconfig set en1 DHCPĮcho "add State:/Network/Interface/en0/RefreshConfiguration temporary" | sudo scutil Set the interface called Wi-Fi to obtain it if it isn’t already Networksetup -ordernetworkservices “Wi-Fi” “USB Ethernet” Networksetup -setnetworkserviceenabled offĬhange the order of your network services: Networksetup -renamenetworkservice Ethernet Wired Rename the network service called Ethernet to the word Wired: List all of the network interfaces on the system: Switch the active location to a location called Work, but also show the GUID of that location so we can make scripties with it laters: Switch the active location to a location called Work: Networksetup -createlocation Work populate Obtain the active location the system is using:Ĭreate a network location called Work and populate it with information from the active network connection: Show a list of locations on the computer: Get information about how en0 got its dhcp on: Ipconfig getoption en0 domain_name_server Same thing, but setting and echoing a variable: Then press the delete key.After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. You can select a range, by clicking on the 1st, then hold the "Shift" key and click on the last entry (after scrolling if necessary", and the entire range will be selected. If you wish to delete Preferred Networks "Whole Sale", then Select the 1st one, then holding the "Command" key, click on additional Preferred Network names until you have selected all you wish to delete, then press the delete key. It ONLY works when you type the network name starting with the beginning of the name. Now start typing the name of the network you want to find, and the list will start to find entries matching the letters you type. Select an entry in the Preferred Networks list. Thoughts? I could go one by one but that will take forever. I seem unable to use the search bar when I'm in the preferred network plane and I can't organize the list alphabetically. Is there any way to search for a specific network? I have a ton of some saved - it's the remnants of having used the computer for many years - and I'm looking for one specific network.