0

Regarding these 3 options available from holding option key while clicking the wifi network icon:

enable wifi logging, create diagnostics report, open wireless diagnostics

I came across post for how to find and launch the Wireless Diagnostics option. I would like to know if there's also a way from the terminal / command line:

  • to trigger enable (and later) disable wifi logging
  • to trigger creating the diagnostics report

so that can script these actions in more automated unattended operation. I did also see a post for where to find the logs regarding the wifi logging, when enabled.

8
  • 2
    Does this answer your question? Guide to the output of the builtin airport command line utility
    – Allan
    Commented Jan 16 at 3:56
  • Also see this answer as well as this question/answer. That said, is there a specific problem you’re trying to solve? Automating this (via script) is not how this is typically done. To troubleshoot WiFi issues, you need to get the diagnostic info at the time of trouble.
    – Allan
    Commented Jan 16 at 3:58
  • Thanks for the links, but those don't directly answer my question. I don't want to use airport, which I'm aware of. I want the CLI equivalents to the mentioned GUI dropdown options. I only know of the equivalent to opening wifi diagnostics app. I guess maybe Apple hasn't exposed those over CLI.
    – David
    Commented Jan 16 at 16:59
  • Yes, I know this automation is not standard, I'm helping build/augment a solution where we monitor user's wifi connectivity locally and on cloud side from stats reported by a local software agent. We want to be able to help user diagnose wifi issues before and while they complain, not after they contact us with a complaint. In this sense, want to utilize native OS diagnostics features but minimize (and not necessarily avoid) the user involvement in retrieving such info. The less we ask of user to help perform certain actions, the better.
    – David
    Commented Jan 16 at 17:03
  • There are not necessarily CLI equivalents to every GUI tool. You can’t assume it just exists. As far as the log gos, its more of a report that gets saved to the desktop. That said, what’s your expectation for how this “tool” will run?
    – Allan
    Commented Jan 16 at 18:12

0

You must log in to answer this question.

Browse other questions tagged .