Просматривая /var/log
на MacOS 10.11, я нашел этот файл журнала wifi.log. Следующий поиск даст вам хорошее представление об изменении статуса WiFi:
$ grep processAirPortStateChanges /var/log/wifi.log \
| grep connect \
| grep -v -e "old state=disconnected, new state=disconnected" \
-e "old state=connecting, new state=connecting" \
-e "old state=disconnected, new state=auto-join" \
-e "old state=auto-join, new state=connecting" \
| cut -d' ' -f1-5,12-
Пример вывода (да, мой новый маршрутизатор Comcast работает некорректно, поэтому я сам наткнулся на этот вопрос в поисках файла журнала):
Sun Apr 3 00:46:08.540 old state=connecting, new state=4 bars
Sun Apr 3 01:46:50.509 old state=4 bars, new state=disconnected
Sun Apr 3 01:46:52.839 old state=4 bars, new state=connecting
Sun Apr 3 01:46:53.944 old state=connecting, new state=4 bars
Sun Apr 3 02:47:36.283 old state=4 bars, new state=disconnected
Sun Apr 3 02:47:37.900 old state=4 bars, new state=connecting
Sun Apr 3 02:47:38.385 old state=connecting, new state=4 bars
Sun Apr 3 03:49:38.732 old state=4 bars, new state=disconnected
Sun Apr 3 04:50:24.289 old state=4 bars, new state=disconnected
Sun Apr 3 04:50:26.313 old state=4 bars, new state=connecting
Sun Apr 3 04:50:27.026 old state=connecting, new state=4 bars
Sun Apr 3 05:51:10.288 old state=4 bars, new state=disconnected
Sun Apr 3 06:35:17.291 old state=4 bars, new state=disconnected
Sun Apr 3 06:35:19.983 old state=connecting, new state=4 bars
Sun Apr 3 08:18:36.758 old state=4 bars, new state=disconnected
Sun Apr 3 08:18:41.836 old state=4 bars, new state=connecting
Sun Apr 3 08:18:42.187 old state=connecting, new state=4 bars