
started by Ingo Molnar <mingo@redhat.com>, 2001.09.17
2.6 port and netpoll api by Matt Mackall <mpm@selenic.com>, Sep 9 2003

2001/9/17 Ingo Molnar <mingo@redhat.com> ˤ곫
2003/9/9 Matt Mackall <mpm@selenic.com> ˤ 2.6 ذܿ netpoll API

Please send bug reports to Matt Mackall <mpm@selenic.com>

Х Matt Mackall <mpm@selenic.com> äƲ

This module logs kernel printk messages over UDP allowing debugging of
problem where disk logging fails and serial consoles are impractical.

Υ⥸塼ϡǥؤεϿ˼Ԥ⥷ꥢ륳󥽡뤬
Ωʤ褦ǥХåǤ褦ˡUDP ͳǥͥ 
printk åϿޤ

It can be used either built-in or as a module. 

ϥͥȤ߹ߤȥ⥸塼ΤɤǤȤޤ

As a built-in,
netconsole initializes immediately after NIC cards and will bring up
the specified interface as soon as possible. 

ͥȤ߹硢netconsole  NIC ɤľ˽ơ
ꤵ줿ͥåȥ󥿡եƱ˵ưޤ

While this doesn't allow
capture of early kernel panics, it does capture most of the boot
process.

netconsole ϽΥͥѥ˥åΥץˤϸƤޤ󤬡
ưץΤۤȤɤ򥭥ץ㤷ޤ

It takes a string configuration parameter "netconsole" in the
following format:

netconsole ϲΥեޥåȤʸѥ᡼ "netconsole" 
ޤ

 netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]

   where
        src-port      source for UDP packets (defaults to 6665)
        src-ip        source IP to use (interface address)
        dev           network interface (eth0)
        tgt-port      port for logging agent (6666)
        tgt-ip        IP address for logging agent
        tgt-macaddr   ethernet MAC address for logging agent (broadcast)


        src-port      UDP ѥåȤΥݡ(ǥեȤ 6665)
        src-ip        Ѥ륽 IP ɥ쥹(󥿡եɥ쥹)
        dev           ͥåȥ󥿡ե(eth0)
        tgt-port      ϿѤΥݡ(6666)
        tgt-ip        ϿȤ IP ɥ쥹
        tgt-macaddr   ϿȤΥͥå MAC ɥ쥹(֥ɥ㥹)

Examples:

㡧

 linux netconsole=4444@10.0.0.1/eth1,9353@10.0.0.2/12:34:56:78:9a:bc

  or

  ޤ

 insmod netconsole netconsole=@/,@10.0.0.2/

Built-in netconsole starts immediately after the TCP stack is
initialized and attempts to bring up the supplied dev at the supplied
address.

ͥȤ߹ߤ netconsole  TCP å줿ľ˥
Ȥꤵ줿ǥХꤵ줿ɥ쥹ǵư褦Ȼߤޤ

The remote host can run either 'netcat -u -l -p <port>' or syslogd.

⡼ȥۥȤ 'netcat -u -l -p <ݡ>' ޤ syslogd Τɤ餫
¹ԤǤޤ

WARNING: the default target ethernet setting uses the broadcast
ethernet address to send packets, which can cause increased load on
other systems on the same ethernet segment.

ٹ𡧥ǥեȤΥåȥͥåǤϡѥåȤ˥֥
ɥ㥹ȥͥåȥɥ쥹ѤޤƱͥåȥ
Ⱦ¾ΥƥβƯΨä븶ˤʤޤ

NOTE: the network device (eth1 in the above case) can run any kind
of other network traffic, netconsole is not intrusive. Netconsole
might cause slight delays in other traffic if the volume of kernel
messages is high, but should have no other impact.

աͥåȥǥХ (嵭ΥǤ eth1) Ϥɤμ¾Υͥ
ȥȥեåǤ¹ԤǤnetconsole ϼ⤷ޤ󡣥ͥ
Υå̤¿硢netcosnole ¾ΥȥեåΤäȤ
ٱΤޤ󤬡ʳαƶϤʤǤ礦

Netconsole was designed to be as instantaneous as possible, to
enable the logging of even the most critical kernel bugs. It works
from IRQ contexts as well, and does not enable interrupts while
sending packets. Due to these unique needs, configuration can not
be more automatic, and some fundamental limitations will remain:
only IP networks, UDP packets and ethernet devices are supported.

Ǥ̿ŪʥͥХǤ⵭ϿǤ褦ˡnetconsole ϲǽʸ¤
¨Ԥ褦ǥ󤵤Ƥޤ IRQ ƥȤ
ƱͤưѥåȤϳߤͭˤޤ󡣤Υ
ˡɬΰ١Ϥʾ弫ư褺ĤδŪ»
बĤäƤޤIP ͥåȥUDP ѥåȡͥåȥǥХ
ΤߥݡȤƤޤ
