¿Cómo veo un registro de eventos de conexión / desconexión de WiFi?

1

Estoy teniendo problemas con mi enrutador, donde el WiFi se desconecta en la mayoría de los dispositivos domésticos, por lo que estoy probando diferentes configuraciones en el enrutador. (Parece estar afectado por el protocolo de seguridad ...)

Me gustaría ver un registro en mi MacBook Pro (10.11.5) de los eventos de conexión / desconexión WiFi para poder realizar un seguimiento.

¿Cuál es la forma más fácil de hacer esto? ¿Puedo usar algún tipo de filtro en la Consola o hay un comando de la CLI?

Intenté filtrar "link down on en0" en la consola en "All Messsages", pero tengo que hacer clic en "Anterior" muchas veces; Me gustaría ver todos los eventos de los últimos días a la vez. Y también me gustaría ver qué SSID WiFi estaba en uso en el momento de la desconexión, qué consola no me muestra.

Ejemplos de eventos de system.log filtrados:

Apr 19 01:01:39 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 01:01:55 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 13:36:26 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 13:36:34 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 13:36:45 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 13:37:08 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 15:13:02 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 15:18:25 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 18:17:09 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 18:17:18 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 18:17:22 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 18:35:38 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 4 (Disassociated due to inactivity).
Apr 19 19:11:10 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 4 (Disassociated due to inactivity).
Apr 19 19:14:46 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 19:14:50 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 20:00:14 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:00:22 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 20:00:25 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 20:00:49 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:01:00 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:01:35 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:01:38 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 20:01:42 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).
Apr 19 20:01:46 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:02:19 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:03:24 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:03:55 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:04:17 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:04:28 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
Apr 19 20:18:11 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 4 (Disassociated due to inactivity).
Apr 19 20:19:20 Zmbp kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
    
pregunta Ze'ev 20.04.2017 - 12:39

1 respuesta

4

Para ver todos los mensajes de registro generados por el kernel durante el último día que contienen el texto AirPort: Link Down , puede hacerlo:

log show --predicate '(processImagePath contains "kernel") && (eventMessage contains "AirPort: Link Down")' --style syslog --last 1d

Acceda a la página del manual de log(1) para obtener mucha (mucha) información adicional.

Editar: Ah, veo que estás en 10.11. Lo que describo solo funcionará en 10.12 con su nuevo sistema de registro unificado. Mis disculpas!

    
respondido por el wjv 20.04.2017 - 14:41

Lea otras preguntas en las etiquetas