All of lore.kernel.org
 help / color / mirror / Atom feed
* How to wait for kernel messages?
@ 2003-10-13 13:59 Sebastian Piecha
  2003-10-14 12:12 ` Richard B. Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Piecha @ 2003-10-13 13:59 UTC (permalink / raw)
  To: linux-kernel

I have some problems with one NIC. Due to lack of time as an 
workaround I'd like to wait for the kernel message "NETDEV WATCHDOG: 
eth0: transmit timed out" and ifconfig down/up the NIC.

How can I trigger any action by such a kernel message? Do I have to 
grep the kernel log?

Mit freundlichen Gruessen/Best regards,
Sebastian Piecha

EMail: spi@gmxpro.de


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: How to wait for kernel messages?
@ 2003-10-14 21:07 Jim Keniston
  2003-10-14 22:57 ` Sebastian Piecha
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Keniston @ 2003-10-14 21:07 UTC (permalink / raw)
  To: spi; +Cc: LKML, root

On Mon, 13 Oct 2003, Sebastian Piecha wrote:

> I have some problems with one NIC. Due to lack of time as an
> workaround I'd like to wait for the kernel message "NETDEV WATCHDOG:
> eth0: transmit timed out" and ifconfig down/up the NIC.
>
> How can I trigger any action by such a kernel message? Do I have to
> grep the kernel log?
>
> Mit freundlichen Gruessen/Best regards,
> Sebastian Piecha

If you had LTC's Event Logging installed, and you had your kernel
configured to forward printk messages to the event log, you could
do something like this:

evlnotify -f 'data~"NETDEV WATCHDOG: eth0: transmit timed out"' \
	-a 'ifconfig eth0 down; ifconfig eth0 up'

That would cause the ifconfig down/up to run each time the indicated
printk happened.

Jim Keniston
IBM Linux Technology Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-14 22:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-13 13:59 How to wait for kernel messages? Sebastian Piecha
2003-10-14 12:12 ` Richard B. Johnson
2003-10-14 21:07 Jim Keniston
2003-10-14 22:57 ` Sebastian Piecha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.