Find Detailed Wi-Fi Connection history of Mac OS X with command line

Je vais rédiger quelques articles techniques en Anglais (histoire d’élargir mon audience sur le Net). Pour mes lecteurs en langues de Molière, dites moi en commentaire si cela est vraiment trop gênant et je vous ferais une version française en retour.

Premier article sur le réseau et la partie Wi-fi.
There are some situations where knowing exactly what wireless networks a Mac has connected to and when that connection was last established can be helpful. We’ll demonstrate how to uncover a comprehensive listing of specifics about previously joined wi-fi networks, which will include the last connection date and time (to the second!), if the network is hidden or not, the network SSID number, the networks SSID broadcast name, and the security type of each wifi network.
This will use the command line of OS X, which is obviously a bit more advanced and perhaps not applicable to average Mac users. Nonetheless, the retrieved information can be helpful for a wide variety of purposes. You’ll find the data useful for something as simple as recovering a forgotten a wi-fi network password from a router which you can’t quite remember the name of, to network troubleshooting and diagnostics, or even for data analysis and forensic purposes.Launch the Terminal application, located in /Applications/Utilities/ (or with Spotlight and Command+Spacebar) and enter the following command string into a single line:For modern versions of Mac OS X, OS X Yosemite 10.10 and newer, use the following:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences |grep LastConnected -A 7
Hit return and you’ll instantly see the comprehensive listing of wireless network connection details.
Here’s an example of output supplied by this command string, showing three connected networks.
Capture d'écran 2015-11-06 21.04.12
Keep in mind if you run this command on a Mac that has joined many wireless routers, you’ll find a very lengthy list returned, which may be better read if redirected into a text file by appending “> ~/Desktop/connectionlist.txt” to the end of the syntax like so:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences |grep LastConnected -A 7 > ~/Desktop/connectionlist.txtIf you use that command, a file named ‘connectionlist.txt’ will appear on the current users OS X desktop with the pertinent information.
Capture d'écran 2015-11-06 21.05.12
Regular readers here may recall that we have shown a few ways to find which wi-fi networks a Mac has connected to before, but those methods in comparison provide notably less information, certainly compared to the extensive details offered here. You can use whichever is most relevant to your needs.
In modern versions of Mac OS, like OS X El Capitan and Yosemite, you can shorten the syntax considerably as so:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences |grep SSIDString
Capture d'écran 2015-11-08 17.39.43

No comments yet... Be the first to leave a reply!

Laisser moi votre sentiment....

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s