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.

David
  • 195
  • 2
  • 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 Jan 16 '24 at 03: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 Jan 16 '24 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 Jan 16 '24 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 Jan 16 '24 at 18:12
  • The tool runs as a background service, and is not interacted with by the user except when a prompt comes up for user action, or if user interacts with what minimal GUI the tool provides in the system tray. This is much the behavior of software like antivirus, IT installed security tools installed on corporate enterprise computers, and software like Zscaler as an example. – David Jan 16 '24 at 19:07
  • The intent for the tool & this integration here is to avoid having to need user invoke those GUI options for us. We can invoke on their behalf (when possible), and they handle parts we can't do on their behalf. One being there's no way to bypass any Finder window popups on some commands, so user will be made aware of that. It streamlines the process, especially for less tech savvy users. – David Jan 16 '24 at 19:12
  • I'm aware not all GUI features have a CLI option. This post here was to find out if there are any CLI equivalents. Did my post not reflect that properly? I would ask Apple directly, but that's harder to do, especially without a paid developer account membership. – David Jan 16 '24 at 19:14

0 Answers0