Posted on 07-24-2024 06:14 AM
Got a question regarding WiFi troubleshooting. Our networking team was asking if there is a similar command like what they run on the windows side for troubleshooting (Netsh WLAN show WLANreport). Is there something similar that can be run on the Mac side? I was just going to enable logging and hoping that would capture the data the network guys would need to troubleshoot some disconnects on the local device. Since our users don't have admin rights, I was trying to create a policy that deploys the enable command via files and processes or even a script, but it doesn't enable logging./usr/libexec/airportd debug +AllUserland +AllDriver +AllVendor.
Posted on 07-24-2024 06:48 AM
Posted on 07-24-2024 06:58 AM
if you hold down the option key while selecting the wifi icon, you'll be greeted with a more extensive wifi menu; which features three diagnostic routes:
-Enable Wifi Logging
-Create Diagnostic Report
-Wireless Diagnostic Reports
These three options more then likely contain the info the team is looking for.
Hope that helps
Posted on 07-24-2024 07:07 AM
Regarding Wireshark, we do have that, but want something the user can kickoff via self-service without having to configure and set it up. As mentioned above our users don't have admin rights on their devices to run the options above and I was trying to create a self-service item that will enable Wi-Fi logging. The thought was, assign the policy to the user have them enable it, when they get the disconnect it should capture the log, have them run the disable Wi-Fi logging and then provide the log.
Posted on 07-24-2024 08:35 AM
I have a script on Self Service that exports WiFi logs to /Users/Shared
#!/bin/sh
/usr/bin/log show --style syslog --predicate 'processImagePath contains "eapolclient" and subsystem contains "com.apple.eapol" or processImagePath contains "SecurityAgent" and subsystem contains "com.apple.SecurityAgent"' --last 3d > "/Users/Shared/eapolclient.log"
/usr/bin/open '/Users/Shared/eapolclient.log'
exit 0