1846335 Members
3777 Online
110256 Solutions
New Discussion

Re: Shutdown logs

 
SOLVED
Go to solution
Dimitri Karagiannis
Occasional Advisor

Shutdown logs

Hi everyone,

One of our clients wants to have a monthly report on all the downtimes our servers had starting from this month. Is there any file that is written that keeps track of everytime the server is shut down?

Thanks in advance,

Dimitri
3 REPLIES 3
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Shutdown logs

Normal shutdowns are logged in
/etc/shutdownlog

for crashes, you would have to sniff around the /var/adm/syslog/syslog.log and /var/adm/crash

good luck
nothing wrong with me that a few lines of code cannot fix!
Bill Hassell
Honored Contributor

Re: Shutdown logs

/etc/shutdown may not exist so make sure it is created. shutdownlog will keep a record of all shutdowns, normal (ie, operator directed), powerfails, and system crashes. For useful information about crashes, you must setup /var/adm/crash (preferably pointing to a very big area since each crash dump can be 100% the size of RAM (pre-11.0) or about 25% RAM (11.0 and beyond).

The 1-line reason for a crash is not too useful except to identify a crash has occurred.


Bill Hassell, sysadmin
Richard Darling
Trusted Contributor

Re: Shutdown logs

Bill, don't you mean that /etc/shutdownlog may not exist. /etc/shutdown will exist as a link to /usr/sbin/shutdown.