Operating System - HP-UX
1832525 Members
7931 Online
110043 Solutions
New Discussion

How can I know why tha machine go down

 
malki_3
Frequent Advisor

How can I know why tha machine go down

Hello everyone
This morning I have a hpux machine that goes down and I retsrat it
When I do who -r I have the date of my reboot but when I want to know at what's time I had the shutdwon, I don't found. I have checked in /etc/shutdownlog but I founf any information
Can you give help
Thinks
10 REPLIES 10
U.SivaKumar_2
Honored Contributor

Re: How can I know why tha machine go down

hi,
cd /var/adm/syslog/
vi syslog.log
vi shutdown.log

regards,
U.SivaKumar
Innovations are made when conventions are broken
BFA6
Respected Contributor

Re: How can I know why tha machine go down

Hi,

Have a look in /var/tombstones for the latest tombstone file. e.g ts99 look for Chasis codes.

Hilary
John Strang
Regular Advisor

Re: How can I know why tha machine go down

I would check
/var/adm/syslog/OLDsyslog.log because when the machine reboots, the existing syslog.log file is renamed as OLDsyslog.log ana d new file created.

Use more OLDsyslog.log to show the contents of the file, one screen at a time.

HTH
John
If you never make a mistake you'll never make anything.
Tom Geudens
Honored Contributor

Re: How can I know why tha machine go down

Hi,
If the machine crashed ... you won't have a shutdowntime. Take a look at /var/adm/crash to see if a crashdump has been written.
Depending on the type of the machine you can also take a look at the serverlog which you'll find in the GSP, command SL.

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Mark Vollmers
Esteemed Contributor

Re: How can I know why tha machine go down

Hi-

what time does it shut down? Are you there when it happens? There have been a couple of threads about times when cleaning people or others have unknowingly unplugged servers during the night. Also, if you don't have a UPS on it, there might be a surge coming through at that time that is enough to bring it down. If possible, you might want to just sit there and watch it to make sure that it is not a hardware or external issue.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
pap
Respected Contributor

Re: How can I know why tha machine go down

Hi,
you can not check the rebooot time using who -r command.

you have to use who -b command to know when the machine has been booted.

Following is the entry from my one of the machine.

$ who -b
. system boot Apr 16 17:32
$

hope this helps,

-pap
"Winners don't do different things , they do things differently"
Bill Hassell
Honored Contributor

Re: How can I know why tha machine go down

/etc/shutdown will log the time of a powerfail (it logs this info after rebooting) but will not log a system crash unless you have setup crash dump capability. This means that you have:

1. Created /var/adm/crash
2. edited /etc/rc.config.d/savecrash and make sure that the line:

# SAVECRASH=0

is changed to:

SAVECRASH=1

If this is not done, no crashdump will be taken and the reason for the system crash cannot be logged. Note that the reason will not tell you what to fix, only that it crashed as opposed to a powerfail.


Bill Hassell, sysadmin
Bill McNAMARA_1
Honored Contributor

Re: How can I know why tha machine go down

I would look at your swlist and syslog.

Run pdcinfo (under /usr/contrib) for info on hpmc..


Later,
Bill
It works for me (tm)
malki_3
Frequent Advisor

Re: How can I know why tha machine go down

For the moment I can't for now with yours answers to verify at what time the machine have crashed..
I have used the pdcinfo and I dont know I can use it: I have this error: No valid timestamp
So I dont know if there's other solution to check at what's hour the machine have crashed and how can I verify why I had this problem
Thins all for your answers
Steven Sim Kok Leong
Honored Contributor

Re: How can I know why tha machine go down

Hi,

Run q4 on the crash dump. q4 is a crashdump analysis tool.

Hope this helps. Regards.

Steven Sim Kok Leong