LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   boot log information required! (https://www.linuxquestions.org/questions/linux-general-1/boot-log-information-required-421634/)

xcr 03-04-2006 02:29 PM

boot log information required!
 
hi,
yes the last -x | egrep (reboot, runlevel) does give the last time the system was rebooted, but is there a way to find out how many times the system has been booted/rebooted say in the last 3-4 days and find out for how long was it down?
thanks

burntfuse 03-04-2006 03:01 PM

I think /proc/uptime has the uptime (Gkrellm also has an uptime monitor).

haertig 03-04-2006 03:04 PM

# last -x | egrep (reboot|runlevel)

xcr 03-04-2006 07:45 PM

hi,
yes the last -x | egrep (reboot, runlevel) does give the last time the system was rebooted, but is there a way to find out how many times the system has been booted/rebooted say in the last 3-4 days and find out for how long was it down?
thanks

stefan_nicolau 03-05-2006 03:04 PM

/var/log/messages can tell you when the system was rebooted/halted and booted. Grep for "reboot" or "halt" to know when the computer went down and for "255MB LOWMEM available" or something like that to find out when the system booted. You may have to look through several logfiles if your logs are rotated daily.


All times are GMT -5. The time now is 10:59 PM.