tag:blogger.com,1999:blog-2927721098720542702.post528937955974568875..comments2023-12-28T06:23:44.920+10:00Comments on Linux Aleph: how to monitor dmesg in real timeUnknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-2927721098720542702.post-12219656965543891362017-03-18T17:34:51.279+10:002017-03-18T17:34:51.279+10:00Another simple way:
Using 'Ctrl + Alt + Fn'...Another simple way:<br />Using 'Ctrl + Alt + Fn' to switch virtual console.Anonymoushttps://www.blogger.com/profile/17640091948059443231noreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-68607715848264281882016-04-16T16:37:25.703+10:002016-04-16T16:37:25.703+10:00Nice tip! "dmesg -wH" does require kerne...Nice tip! "dmesg -wH" does require kernel 3.5 or later and a new util-linux version. This blog post was written long before either of those existed. Even current Ubuntu LTS's util-linux is not new enough for it.Jamiehttps://www.blogger.com/profile/04102646148403119742noreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-15296037226870892222016-04-16T01:01:25.969+10:002016-04-16T01:01:25.969+10:00use "dmesg -wH" - it will print out the ...use "dmesg -wH" - it will print out the last messages in the dmesg ring buffer in real timeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-76657407695845471702013-06-12T23:15:48.128+10:002013-06-12T23:15:48.128+10:00Hi
I needed a complete dmesg log but avoid to dele...Hi<br />I needed a complete dmesg log but avoid to delete it with dmesg -c and ended up with the "one-liner"<br /><br />export F=/tmp/dmesg.log ; \<br />rm -f $F ; \<br />while true; do \<br /> dmesg|comm -1 -3 --nocheck-order $F - | tee -a $F ; \<br />doneTyphonnoreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-60752030870429496022012-02-14T05:36:10.943+10:002012-02-14T05:36:10.943+10:00Super useful. Thanks!Super useful. Thanks!Anonymoushttps://www.blogger.com/profile/02784223577165299622noreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-86868436816807111552011-08-17T08:07:31.377+10:002011-08-17T08:07:31.377+10:00Thanks J!
This is perfect:
watch "dmesg | t...Thanks J!<br /><br />This is perfect:<br /><br />watch "dmesg | tail -20"David K.https://www.blogger.com/profile/15468647579752506273noreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-54220909278413987892011-04-29T17:38:28.308+10:002011-04-29T17:38:28.308+10:00If you want to watch your kernel messages (dmesg) ...If you want to watch your kernel messages (dmesg) than tail -f kern.log<br /><br />Now you can tail and log all at the same time ( this is on Ubuntu which is what you said you were using)Anonymoushttps://www.blogger.com/profile/16464303594892494573noreply@blogger.comtag:blogger.com,1999:blog-2927721098720542702.post-75178977416526821412009-10-14T17:04:26.740+10:002009-10-14T17:04:26.740+10:00I think you can create following script
#!/bin/bas...I think you can create following script<br />#!/bin/bash<br />while [ 1 ]; do<br /> dmesg -c<br />done<br /><br />And run with<br />./dmesg_mon >> dmesg_log<br /><br />Then the dmesg will be log into file instead of console ;)<br /><br />Cheers,<br />-HieuHieu Le Trunghttps://www.blogger.com/profile/14528113575371376087noreply@blogger.com