LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2006, 02:29 PM   #1
xcr
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
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

Last edited by xcr; 03-04-2006 at 07:56 PM.
 
Old 03-04-2006, 03:01 PM   #2
burntfuse
Member
 
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164

Rep: Reputation: 30
I think /proc/uptime has the uptime (Gkrellm also has an uptime monitor).
 
Old 03-04-2006, 03:04 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
# last -x | egrep (reboot|runlevel)
 
Old 03-04-2006, 07:45 PM   #4
xcr
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 03-05-2006, 03:04 PM   #5
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
/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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing on which log information is saved Pastorino Linux - Software 0 09-23-2005 07:56 AM
VI Information Required DaveyB Programming 2 11-10-2004 10:18 AM
some very basic information required sixth_sense Linux - Newbie 2 04-18-2004 12:39 AM
lsmod / information required bibilit Linux - Software 1 12-27-2003 11:02 AM
log information - newbie SoCalVP Linux - General 3 01-09-2003 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration