| 1 | --- |
| 2 | date: 2018-10-30 |
| 3 | footer: netconsole-setup |
| 4 | header: "netconsole-setup's Manual" |
| 5 | layout: page |
| 6 | license: 'Licensed under the ISC license' |
| 7 | section: 8 |
| 8 | title: NETCONSOLE-SETUP |
| 9 | --- |
| 10 | |
| 11 | # NAME |
| 12 | |
| 13 | netconsole-setup - Dynamically configure Linux netconsole |
| 14 | |
| 15 | # SYNOPSIS |
| 16 | |
| 17 | **netconsole-setup** [[**+**][**target-port**]@]**target-host** ... |
| 18 | |
| 19 | # DESCRIPTION |
| 20 | |
| 21 | Netconsole is a Linux kernel module that sends all kernel log messages over |
| 22 | the network to another computer. It was designed to be as instantaneous as |
| 23 | possible, to enable the logging of even the most critical kernel bugs. It |
| 24 | works from IRQ contexts as well, and does not enable interrupts while sending |
| 25 | packets. Due to these unique needs, only IP networks, UDP packets and Ethernet |
| 26 | devices are supported. |
| 27 | |
| 28 | **netconsole-setup** eases the configuration of the netconsole by just taking |
| 29 | the target hostname or IP address. It determines all the needed configuration |
| 30 | values from the running network device (like network interface, target IP and |
| 31 | MAC address). Multiple target hosts can be specified. Each host can be prefixed |
| 32 | with a target port and a plus sign to enable extended console support. |
| 33 | |
| 34 | # OPTIONS |
| 35 | |
| 36 | **+** |
| 37 | : if present, enable extended console support for this host |
| 38 | |
| 39 | **target-port** |
| 40 | : port for logging agent (kernel default is port 6666) |
| 41 | |
| 42 | **target-host** |
| 43 | : hostname or IP address for logging agent |
| 44 | |
| 45 | # EXAMPLES |
| 46 | |
| 47 | ``` |
| 48 | netconsole-setup loghost |
| 49 | ``` |
| 50 | |
| 51 | sends all kernel log messages to host *loghost*. |
| 52 | |
| 53 | ``` |
| 54 | netconsole-setup +4444@loghost |
| 55 | ``` |
| 56 | |
| 57 | sends all kernel log messages to host *loghost* on port *4444* using the |
| 58 | extended console support. |
| 59 | |
| 60 | ``` |
| 61 | netconsole-setup loghost1 4444@loghost2 |
| 62 | ``` |
| 63 | |
| 64 | sends all kernel log messages to host *loghost1* on the default port and to |
| 65 | host *loghost2* on port *4444*. |
| 66 | |
| 67 | # AUTHOR |
| 68 | |
| 69 | Benjamin Drung <[email protected]> |