LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   unwanted log messages on the screen (http://www.linuxquestions.org/questions/red-hat-31/unwanted-log-messages-on-the-screen-480909/)

pranavchoudhary 09-06-2006 08:09 AM

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

druuna 09-06-2006 08:41 AM

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.

pranavchoudhary 09-06-2006 08:49 AM

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

druuna 09-06-2006 09:10 AM

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.

pranavchoudhary 09-06-2006 09:25 AM

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

druuna 09-06-2006 09:44 AM

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

pranavchoudhary 09-06-2006 12:29 PM

my interface is not a dhcp client. Still i tried the stuff. Results:negative.

druuna 09-06-2006 12:50 PM

Hi,

Try: dmesg -n 1

See man dmesg for details.

Hope this helps.

pranavchoudhary 09-07-2006 01:58 AM

Thanks a lot. It helps, after a dmesg -n 3, the messages disappear.

-pranav


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