Enabling Advanced Logging for Wireless in Mac OS X
From Provider Wiki
Contents |
Overview
Mac OS X has several integrated logging features that can be enabled to provide important diagnostic information.
Airport and/or Wi-Fi Logging
- Open Terminal
- Type: sudo su -
- Type: cd /
- Type: System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport debug +AllUserLand
- Exit
- Close Terminal.
- Restart the Computer.
The wifi logs will be in Console (/Applications/Utilities) in the /var/log/ subtree as wifi.log
Enabling eapolclient Logging (Authentication)
- Open Terminal
- Type: sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.eapolclient LogFlags -int -1
- Exit
- Close Terminal.
- Restart the Computer.
The eapolclient is the 802.1X supplicant on Mac OS X. This setting will have it dump copious logs to /var/log/eapolclient.<interface>.log. Where the interface is something like en1, or whatever the particular network adaptor, wired or wireless, you're trying to use. You can also find them in Console.log
Note: To disable the logging you just set the integer back to 0
- Type: sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.eapolclient LogFlags -int 0
Using the Wi-Fi Utility in 10.7
A "hidden" feature of Mac OS X 10.7 (Lion) is the Wi-Fi Diagnostics utility. To find it, navigate to: /System/Library/CoreServices/. From this utility you can:
- Monitor Performance: view signal strength and noise levels as well as see which the BSSID you are associated with.
- Record Events: Look for disconnects, roams, etc.
- Capture Raw Frames
- Turn on Debug Logs
