Hi Jamf Nation,
I'm working on a script to capture the most recent causes of a restart. This command works great on Intel Macs and provides useful data output:
log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
Does anybody know of the equivalent log predicate for Macs with Apple Silicon? In all of my testing on my lab M1 this command does not respond back with useful data, and I can't find the proper log predicate to give me what I need.
For context, this blog article brilliantly shows the response codes and probable causes for the restarts.