I'm trying to get a Solaris (SunOS 5.10) shutdown and boot history. Unfortunately the /var/adm/wtmpx file does not cover the period I want to trace. It's been reset. Therefore the command, "last" (or "last reboot") does not reach back far enough.
Additionally the /var/adm/messages* files do not show any reboot information and I know the system was rebooted several times over the weekend.
Is there anywhere else I can grep to find this history? Right how all I have is "who -b" for the last reboot timestamp. This is a Solaris 10 server running Oracle 11g, so the only chink of light I can see, is examining the Oracle server alert logs.
% grep 'Sun Microsystems' messages*
messages.0:Dec 29 11:01:40 au10qap0y0tels2 genunix: [ID 943907 kern.notice] Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
messages.0:Dec 29 14:11:04 au10qap0y0tels2 genunix: [ID 943907 kern.notice] Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
..and it's definitely been rebooted since last December...
% who -b
. system boot Sep 25 04:18
% ls -l mess*
-rw-r--r-- 1 root root 7465001 Oct 4 14:35 messages
-rw-r--r-- 1 root root 57734 Dec 29 2007 messages.0
Try executing "logadm" and this will roll your messages file. Read /etc/logadm.conf to see if you have anything setup to log messages.
I also suggest to insert a logadm entry in your crontab for root.