1825802 Members
2336 Online
109687 Solutions
New Discussion

reboot log

 
aneez
Regular Advisor

reboot log

HI all

one of our site the server got rebbooted intermittently because of the power issue.is anyway to find out the rebooted time or power off time

thanks and regards
Aneez
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: reboot log

Only for the last two times - by checking /var/adm/syslog/syslog.log and /var/adm/syslog/OLDsyslog.log


Pete

Pete
aneez
Regular Advisor

Re: reboot log

hi pete

IN its oldsyslog its not showing the proper time is any otherlog for reboot
Luk Vandenbussche
Honored Contributor

Re: reboot log

If you have a power down, nothing is logged because all the process are stopping immediatly.

With the command uptime you can see how long the server is running. And from here you can make a calculation when the server stopped.
Suppose a normal reboot takes 5 min then substract 5 min from the uptime
spex
Honored Contributor

Re: reboot log

Hello Aneez,

$ last -R reboot

Just remember that the wtmp (and btmp and utmp for that matter) database, which 'last' draws upon, is prone to inaccuracy and corruption.

PCS
Aussan
Respected Contributor

Re: reboot log

Hi Aneez

take a look at the shutdownlog

/etc/shutdownlog

it has the time of all rebootes and shutdowns, and from where and why..

example

15:42 Wed Jun 14, 2006. Reboot: (by SERVER1!root)

10:34 Thu Jun 15, 2006. Reboot:

23:05 Sat Jul 8, 2006. Halt: (by SERVER1!root)

The tongue weighs practically nothing, but so few people can hold it
mavrick
Regular Advisor

Re: reboot log

Hi Aneez

Check the log /etc/shutdownlog

This will give you the timing..
Sp4admin
Trusted Contributor

Re: reboot log


Please check the /var/adm/shutdownlog this should pervide you a tim stamp.

sp,
Pete Randall
Outstanding Contributor

Re: reboot log

The shutdownlog is not going to have anything in it in the case of a power failure, people. Read the question.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: reboot log

If the system is not protected by an UPS it will power off immediately. Now have a look into the MP/GSP/ILO logs and you will find a power fail message regarding the internal power supplies or AC power loss.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: reboot log

Luk's suggestion will probably come pretty close, though you can also do a 'who -r' and look at the date and time there to see the time the machine came back up.

There is no way to know when the machine went down if you lose ALL power.

This is a good reason / justification for a UPS.