Finding time of last shutdown

Joined
Aug 8, 2006
Messages
15
Reaction score
0
Points
1
Location
Sapporo, Japan
Your Mac's Specs
15" PB G4, 1 GHz, 768 RAM, OS X Tiger 10.5.6
Hello All,

I have a unique situation. My wife and I moved to Japan about 5 months ago and we came home two nights ago to find our house unlocked, power out, and our belongings scattered around. The rear window was broken and some things were stolen. Luckily, the iMac was left upstairs.

I'm trying my hardest to find a time for the power outage in the console logs, but I'm having no luck. I figured the time of the shutdown would give me some idea of when the thieves broke in.

Thanks,
 
Joined
Apr 26, 2008
Messages
2,963
Reaction score
120
Points
63
Location
Belgium
Your Mac's Specs
iPad Pro 12.9 latest iOS
I guess you are not going to find a timestamp in the logs because your Mac was not properly shutdown, so it did not have time to write anything to the logs.

Unless your Mac was running on a UPS, in which case the UPS might have written something to its internal log. ( That would depend on the brand/model of the UPS )

Don't forget to check the internal log of the modem/router .... there might be an indication in there.

Not much of a help .... I know ..... sorry

Cheers ... McBie
 
Joined
Aug 6, 2004
Messages
1,713
Reaction score
71
Points
48
Location
Tejas
Your Mac's Specs
2GHz Mac Mini 2GB RAM 160GB 10.6.2 | MDD DP 1.25GHz G4 1.5GB RAM 10.4.11 | 233MHz iMac G3 10.3.9
You could see the last time ANYTHING was written to the system log before you turned the computer back on that night/day.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Ok, you can grep for either bootlog or shutdown in /var/log/system.log

like such

Code:
mikeMbp:log mike$ grep bootlog /var/log/system.log
Oct 24 11:51:34 mikeMbp bootlog[45]: BOOT_TIME: 1256410271 0
Oct 26 16:28:03 mikeMbp bootlog[45]: BOOT_TIME: 1256599660 0
Oct 26 16:31:25 mikeMbp bootlog[42]: BOOT_TIME: 1256599861 0
Oct 28 15:38:09 localhost bootlog[43]: BOOT_TIME: 1256769467 0
Oct 28 15:41:20 localhost bootlog[43]: BOOT_TIME: 1256769659 0
mikeMbp:log mike$ grep shutdown /var/log/system.log
Oct 24 11:46:48 mikeMbp shutdown[3081]: reboot by mike: 
Oct 24 11:46:48 mikeMbp shutdown[3081]: SHUTDOWN_TIME: 1256410008 279014
Oct 26 16:27:04 mikeMbp shutdown[4046]: reboot by mike: 
Oct 26 16:27:04 mikeMbp shutdown[4046]: SHUTDOWN_TIME: 1256599624 869928
Oct 26 16:30:44 mikeMbp shutdown[215]: reboot by mike: 
Oct 26 16:30:44 mikeMbp shutdown[215]: SHUTDOWN_TIME: 1256599844 585882
Oct 28 15:39:47 mikeMbp sudo[200]: mike : TTY=ttys000 ; PWD=/Users/mike ; USER=root ; COMMAND=/sbin/shutdown -h now
Oct 28 15:39:47 mikeMbp shutdown[200]: halt by mike: 
Oct 28 15:39:47 mikeMbp shutdown[200]: SHUTDOWN_TIME: 1256769587 961920

I'm not sure though what a non-graceful shutdown would look like
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
or from a terminal window, do a last and look that listing
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
argghhh, forgot about last :D
 
OP
Crowe
Joined
Aug 8, 2006
Messages
15
Reaction score
0
Points
1
Location
Sapporo, Japan
Your Mac's Specs
15" PB G4, 1 GHz, 768 RAM, OS X Tiger 10.5.6
Thanks everyone. My terminal skills are beyond newb. Could you help me find the "last" readings?
 
Joined
Aug 6, 2004
Messages
1,713
Reaction score
71
Points
48
Location
Tejas
Your Mac's Specs
2GHz Mac Mini 2GB RAM 160GB 10.6.2 | MDD DP 1.25GHz G4 1.5GB RAM 10.4.11 | 233MHz iMac G3 10.3.9
this command's not complicated: open Terminal, type "last" :)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top