Fedora Linux Support Community & Resources Center
  #1  
Old 14th March 2011, 10:14 PM
Sicily1918 Offline
Registered User
 
Join Date: Oct 2004
Location: Los Angeles
Posts: 77
macosfirefox
Question Dmesg and dates...

Sorry for the lame question:

How do you make dmesg display the date/time of an event, instead of the seconds from last boot? I can see how that would be useful at times, but I rely on it the old-fashioned way and I find it difficult to look at stuff that's preceded by 8532387.23313 -- I'd rather it say 12-MAR-11 23:45... help?

P.S. This is on F14.
__________________
Fedora 14 x86_64
HP xw4600 Workstation
Core 2 Quad Q9550
nVidia Quadro NVS
HP L2445w
Reply With Quote
  #2  
Old 14th March 2011, 10:26 PM
vallimar Online
Registered User
 
Join Date: Jul 2008
Posts: 1,058
linuxchrome
Re: Dmesg and dates...

As far as I am aware, it doesn't support that as an option. I find the seconds counter very
annoying as well so I disable it in my custom kernel builds.

Keep in mind that stuff in the log buffers that dmesg prints, also tend to be logged in other files
which do usually contain the time/date stamp. Check /var/log/messages for general messages
and other files therein for other information.
Reply With Quote
  #3  
Old 14th March 2011, 10:36 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,062
linuxfedorafirefox
Re: Dmesg and dates...

I found a guy's webpage that wrote a perl script that will format your dmesg output to show the
real time:
http://regerar.se/2011/02/21/human-r...esg-timestamp/
Reply With Quote
  #4  
Old 14th March 2011, 10:42 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,865
linuxfedorafirefox
Re: Dmesg and dates...

The seconds (and fraction) are very useful for identifying problem when they occur on multiple CPUs as otherwise it is entirely possible for two (or more) messages to show the same time stamp - making it difficult to know which one occurred first.
Reply With Quote
  #5  
Old 14th March 2011, 11:19 PM
Sicily1918 Offline
Registered User
 
Join Date: Oct 2004
Location: Los Angeles
Posts: 77
macosfirefox
Re: Dmesg and dates...

Quote:
Originally Posted by jpollard View Post
The seconds (and fraction) are very useful for identifying problem when they occur on multiple CPUs as otherwise it is entirely possible for two (or more) messages to show the same time stamp - making it difficult to know which one occurred first.
I agree, but most of the time this is not what I'm troubleshooting -- typically I'd like to see when the MD rebuild started or at what time I had a failure (e.g. my USB drive went offline). I hear what you're saying, but I'd like both options, especially since uptimes are completely relative.

Here's to them 'fixing' the problem in FC15 -- honestly, sometimes Linux changes for changes' sake are annoying.

Thanks, all!
__________________
Fedora 14 x86_64
HP xw4600 Workstation
Core 2 Quad Q9550
nVidia Quadro NVS
HP L2445w
Reply With Quote
  #6  
Old 15th March 2011, 12:36 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,865
linuxfedorafirefox
Re: Dmesg and dates...

I don't think it is under the control of a distribution. The output appears to be generated by the kernel, as most of the output exists before even root is mounted. The kernel is spending it's time scanning and initializing controllers.
Reply With Quote
  #7  
Old 15th March 2011, 05:26 PM
vallimar Online
Registered User
 
Join Date: Jul 2008
Posts: 1,058
windows_xp_2003chrome
Re: Dmesg and dates...

It's the CONFIG_PRINTK_TIME option, which is under the Kernel Hacking section.
Fedora enables it by default.
Reply With Quote
Reply

Tags
dates, dmesg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it just me, or is log viewer dates wrong Jake Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 3 15th May 2009 11:02 PM
up dates raidland Installation, Upgrades and Live Media 2 4th March 2009 04:55 PM
Back-ing-up Up-dates? Chomo-Uri Installation, Upgrades and Live Media 2 16th May 2008 12:45 PM
Mirror dates Zyqwux Fedora Core 5 - Dev 2 18th January 2006 06:05 PM
Any know how to get vsftpd to leave the dates alone? wshawn Servers & Networking 0 10th August 2005 03:30 AM


Current GMT-time: 06:35 (Thursday, 23-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Zabid Travel Photos on Instagram - Hellin Instagram Photos - Karlstad