[clug] forcing a kernel message

Mark Triggs mst at dishevelled.net
Tue Aug 2 01:36:12 GMT 2005

Robert Edwards <Robert.Edwards at anu.edu.au> writes:

> Hi all,
> Probably a very simple question (maybe not) - I need to test my kernel
> message logging (via the serial port). How can I generate a benign
> kernel message reliably and simply (eg. without writing code)?
> "modprobe" doesn't count (not benign enough).

If your syslog daemon allows logging from UDP, you should be able to use
netcat.  Something like:

  echo "<0> oops" | netcat -u localhost 514

will probably fill most of your terminals with junk ;o)



Mark Triggs
<mst at dishevelled.net>

More information about the linux mailing list