LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-25-2009, 08:15 PM   #1
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 408

Rep: Reputation: 31
dmesg not providing useful info


when I enter dmesg | grep foo in a terminal I get nil output.

If I enter dmesg on it's own, I get a stream like the last few lines listed below:

Shorewall:net2fwROP:IN=eth0 OUT= MAC=00:14:85:1f:2c:57:00:1b:11:0d:83:27:08:00 SRC=10.1.1.1 DST=10.1.1.3 LEN=407 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=2050 DPT=1730 LEN=387
Shorewall:net2fwROP:IN=eth0 OUT= MAC=00:14:85:1f:2c:57:00:1b:11:0d:83:27:08:00 SRC=10.1.1.1 DST=10.1.1.3 LEN=401 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=2050 DPT=1730 LEN=381
Shorewall:net2fwROP:IN=eth0 OUT= MAC=00:14:85:1f:2c:57:00:1b:11:0d:83:27:08:00 SRC=10.1.1.1 DST=10.1.1.3 LEN=401 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=2050 DPT=1730 LEN=381

Why is this, and what do I need to do to restore dmesg output to display settings???
 
Old 09-25-2009, 08:44 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi Johng, What do you want to look for? isn't foo an alias?

Iptables (shorewall) outputs in realtime to the terminal.

I think you can change this behaviour (path) to a different screen, but I'm not sure atm.

On my system I can see it on ctrl+alt+F12.

regards Glenn
 
Old 09-25-2009, 09:11 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
dmesg merely shows the (kernel) ring buffer - it it has rolled around, maybe the data you are looking for has been lost. Perhaps you should see what is actually in it (using less say), and if Shorewall is writing so much as to purge everything else, change the Shorewall config.
 
Old 09-26-2009, 03:52 AM   #4
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 408

Original Poster
Rep: Reputation: 31
Thank you GlennsPref and syg00

The foo in 'dmesg | grep foo' was intended to indicate the likes of dmesg | grep ivtv, etc.

I tried changing this line in shorewall.conf without effect:

"LOGFILE=/var/log/messages" to "LOGFILE=/var/log/shorewall #messages"

Stopping shorewall stopped shorewall cluttering dmesg, but it is still being cluttered by network messages like this:

DROPPED IN= OUT=eth0 SRC=10.1.1.3 DST=224.0.0.22 LEN=48 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF OPT (94040000) PROTO=2
DROPPED IN=eth0 OUT= MAC= SRC=10.1.1.3 DST=239.255.255.250 LEN=122 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=UDP SPT=2596 DPT=1900 LEN=102

You might ask why it matters? It matters when you're trying to debug something like a usb TV device.

So the question remains, how do I stop or divert the shorewall and network (if that's what it is) from purging everything else?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the Memory info given by dmesg and /proc/meminfo same? sameeruj Linux - General 1 09-13-2007 07:46 AM
Providing Feedback to Patrick? sthomasg27 Slackware 1 08-08-2007 08:44 PM
dmesg (command) and /var/log/dmesg are different? Oxagast Linux - Software 2 07-10-2006 05:50 AM
Linux providing ICS subaruwrx Debian 2 03-23-2005 11:51 PM
/bin/dmesg > /dmesg-boot not Working in Knoppix 3.4 suguru Debian 2 07-04-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:05 PM.

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