LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-06-2006, 08:09 AM   #1
pranavchoudhary
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 25

Rep: Reputation: 15
unwanted log messages on the screen


Hi,
My kernel is 2.4.20-9. Whenever the network link goes down, i get unwanted logs on the terminal, something like these
e100: eth1 NIC link is down
e100: eth1 NIC link is up 100 mbps full duples

I am not running Xwindows(working at runlevel 3). Please help me eliminate these messages.

Thanks,
Pranav
 
Old 09-06-2006, 08:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

It could be that klogd is the reason for this.

Messages with a certain level (and higher) are send to the console. With the -c <number> option you can manipulate this behavior. A higher number (0-7) prints less output to the console.

4 is default (to my knowledge), which would show errors/criticals/alerts/emergencies

6 would for example show: alerts/emergencies

man klogd for details.

Hope this helps.
 
Old 09-06-2006, 08:49 AM   #3
pranavchoudhary
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 25

Original Poster
Rep: Reputation: 15
Hi,
I did a "ps -ef | grep klogd", it was running with (only) -x as its argument. Still, i killed it and started it with -c 4 (and then -c 6) as arguments, but it did not help.

Thanks,
pranav
 
Old 09-06-2006, 09:10 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

So it isn't klogd.....

Does the error message show on one console (/dev/tty1) or on all the consoles (/dev/tty1 -> /dev/tty6)?

It could be a line in the /etc/syslog.conf if it is only on one console (probably /dev/tty1). This line should end with: /dev/tty1

Is the error also present in logfile(s)? If so, is there any extra information about the program (or PID) that is sending this message?

A few more things to check, hope this will help.
 
Old 09-06-2006, 09:25 AM   #5
pranavchoudhary
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 25

Original Poster
Rep: Reputation: 15
Hi,
The message appears on all the consoles. my /etc/syslog.conf does not have any line ending in /dev/tty[1-6] or /dev/console. I greped for these messages in /var/log/ directory. They were present in a file ws2000 and my /etc/syslog.conf has a line
*.* /var/log/ws2000

The log in the file indicates that the kernel is generating the message

Apr 4 10:10:12 hostname kernel: e100: eth1 NIC Link is Down

thanks,
pranav
 
Old 09-06-2006, 09:44 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

Found this, but it seems to be VMWare related:

Quote:
Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine

Description:
You have a virtual machine, with Red Hat Linux 9.0 as the guest operating system and the vlance driver for your network connection. When this guest operating system tries to get a DHCP address, the attempt fails and you see an error message that states the link is down.

Action:
To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these files exist, then make the change for that file only.
/etc/sysconfig/network-scripts/ifcfg-eth[n]
/etc/sysconfig/networking/devices/ifcfg-eth[n]

where, in both cases, [n] is the number of the Ethernet adapter -- for example, eth0.

Add the following section to each of these two files:


check_link_down () {
return 1;
}
Then, run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.
Link I got this from: Red Hat Linux 9.0 VMWare support
 
Old 09-06-2006, 12:29 PM   #7
pranavchoudhary
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 25

Original Poster
Rep: Reputation: 15
my interface is not a dhcp client. Still i tried the stuff. Results:negative.
 
Old 09-06-2006, 12:50 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

Try: dmesg -n 1

See man dmesg for details.

Hope this helps.
 
Old 09-07-2006, 01:58 AM   #9
pranavchoudhary
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks a lot. It helps, after a dmesg -n 3, the messages disappear.

-pranav
 
  


Reply

Tags
dmesg, link, messages, network, state, unwanted


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
Kernel echoing messages on VC (unwanted behavior) lhoff Mandriva 3 12-05-2003 03:28 PM
syslog and firestarter - log messages to another file than messages mule Linux - Newbie 0 08-07-2003 03:35 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration