Skip to content

Instantly share code, notes, and snippets.

@gubiithefish
Created November 30, 2020 10:59
Show Gist options
  • Save gubiithefish/e3de0284f5f0a046aa443917d5114f91 to your computer and use it in GitHub Desktop.
Save gubiithefish/e3de0284f5f0a046aa443917d5114f91 to your computer and use it in GitHub Desktop.
Template for creating a diagnostics report - I use it every time I have a kernel panic in macOS

Automatic advanced systems diagnostics in Mac OS X.

To run the advanced systems diagnostics in Mac OS X.

  1. launch Terminal
  2. type the following command string: sudo sysdiagnose -f ~/Desktop/

The file generated can range from 5MB to 900MB, and is a tar gzip called “sysdiagnose_(date_).tar.gz”. Extracting the tar ball will reveal many files containing system reports, a system_profiler dump, and the output gathered from tons of different terminal commands, ranging from kextstat, to iotop and fs_usage, to vm_stat, and many others.

Manual less advanced systems diagnostics report

Table of content

  1. Remotecontrol info
    0.1. Remotectl list
    0.1. Remotectl dumplist

  2. Console.app
    1.1. Panic string
    1.2. var/log/Jamf.log
    1.3. var/log/DiagnosticMessages/2020.11.01.asl
    1.4. var/log/Powermanagement/2020.11.01.asl
    1.5. var/log/system.log

  3. Terminal commands
    2.1. grep shutdown /var/log/system.log
    2.2. log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
    2.3. kextstat | grep -v com.apple
    2.4. kextstat


0. Remotecontrol info

0.1 /usr/libexec/remotectl list

  <insert log>

0.2 /usr/libexec/remotectl dumpstate

Link: [remotectl dumpstate](insert link)

1. Console.app

1.1 Panic string

  <insert Panic string>

1.3 DiagnosticMessages/2020.11.01.asl

  <insert log>

1.4 Powermanagement/2020.11.01.asl

  <insert log>

1.5 system.log

  <insert snapshot of log>

Link: [system.log](insert link)


2. Terminal commands

2.1. grep shutdown /var/log/system.log

  <insert output>

2.2. log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 72h

  <insert output>

2.3. kextstat | grep -v com.apple

  <insert output>

2.4. kextstat

  <insert output>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment