Is there a way to obtain a history of lock or unlock events in OSX?
I'd like to obtain without deploying an application to OSX based devices, the logged on user, the date and time that the device was locked or unlocked. Locks can be set by screensaver or explicitly by the user.
As an example:
pmset -g log|grep -e ” Sleep ” -e ” Wake “ will show the sleep and wake events
Last command will show the users logon date, duration, shutdown, tty etc.
What I'm looking for is a similar type of command which will show the lock and unlock events.