Solaris shutdown and boot history


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Solaris shutdown and boot history
# 1  
Old 09-27-2010
Solaris shutdown and boot history

Hello.

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.

Thanks.
Patrick/
# 2  
Old 09-28-2010
Quote:
Additionally the /var/adm/messages* files do not show any reboot information and I know the system was rebooted several times over the weekend.
You do not see anything like this in /var/adm/messages?

Code:
Sep 28 10:20:09 mysystem genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_142900-13 64-bit
Sep 28 10:20:09 mysystem genunix: [ID 683174 kern.notice] Copyright 1983-2010 Sun Microsystems, Inc.  All rights reserved.
Sep 28 10:20:09 mysystem Use is subject to license terms.
Sep 28 10:20:09 mysystem genunix: [ID 678236 kern.info] Ethernet address = aa:bb:cc:dd:ee:ff

This set of lines is the start of a system.

HTH
# 3  
Old 10-04-2010
Nope...

Code:
 % 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...

Code:
% 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

Smilie

Very weird!
# 4  
Old 10-04-2010
Maybe you are lucky with the cron log in /var/cron/log. You can find records like
Code:
! SIGTERM Tue Apr 27 15:35:01 2010
! ******* CRON ABORTED ******** Tue Apr 27 15:35:01 2010
! *** cron started ***   pid = 267 Tue Apr 27 15:38:56 2010

there, which is usually caused by a reboot.
# 5  
Old 10-13-2010
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris stuck during boot after reconfigure boot

Hello, I have a problem with my machine that won't boot properly. The story is that I installed a software called apcupsd, which is a control application for my APC battery UPS. I have used version 3.14.10 earlier, but as part of restoring my previously crashed os harddrive I wanted to... (18 Replies)
Discussion started by: Zorken
18 Replies

2. Red Hat

Boot/Shutdown scripts

Server: Redhat 6.2 Goal: Startup script/Shutdown Script Overview: I'm just doing a very basic test. I'm not getting chkconfig involved. Research so far: I've found a few different ways of getting this to work, some say I can just drop the scripts in the corresponding rc directory. Others... (4 Replies)
Discussion started by: HayekSplosives1
4 Replies

3. Shell Programming and Scripting

Boot/Shutdown script automation

Looking to automate some commands to run at boot and poweroff in a startup/shutdown script. How do I place it on the system so that it will be run automatically? I don't want to use cron, not quite specific enough, random times when I may boot or shutdown. ---------- Post updated at 10:47 PM... (8 Replies)
Discussion started by: 3therk1ll
8 Replies

4. Shell Programming and Scripting

Automatic shutdown and startup of Tomcat in Solaris

Dear Experts , I want to stop and Start tomcat at the time of shutdown and startup of our server . I was trying to stop tomcat with following command # su - dm -c "/export/home/Finder/FinderWeb/jakarta-tomcat-3.3.1a/bin/shutdown.sh" but i am getting following error. Please suggest .... (1 Reply)
Discussion started by: Amit.saini333
1 Replies

5. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

6. Solaris

Remote shutdown Solaris

Hi I want to shutdown my remote Solaris servers from XP machine. i want their must be a script file which i run all of the server go down. i try telnet but it ask for passwd. help me out. (4 Replies)
Discussion started by: akhaliq22
4 Replies

7. Solaris

Solaris 10 container graceful shutdown?

Hi, I've got a UPS connected to my Solaris 10 machine and I'm planning to run containers/zones on there. At the moment if the UPS agent sends the signal to the solaris machine to shutdown, all the apps shutdown gracefully and then the host goes down. If I setup containers for the apps, does... (9 Replies)
Discussion started by: fastexit
9 Replies

8. Infrastructure Monitoring

unable to shutdown solaris 10

hi folks, i have a snag, when i attempt shutdown of solaris 10 on a sunfire v240 it seems to pause for ages, and goes no further, im busy learning my way around the system so please be patient. /etc(R)-bash-3.00$ init 6 /etc(R)-bash-3.00$ svc.startd: The system is coming down. Please wait.... (7 Replies)
Discussion started by: alienkidmj12
7 Replies

9. Solaris

Restart/Shutdown the Solaris from SC>

Hi Experts, I am running solris 9. Sun-Fire 880. How do i shutdowon the whole server using ALOM i.e sc> console. If the server is down or somehow hang How do i Restart from sc> //purple (6 Replies)
Discussion started by: thepurple
6 Replies

10. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies
Login or Register to Ask a Question