NETCONSOLE-SETUP(8)

πŸ“¦
version 0.3.1 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸ’– NETCONSOLE-SETUP πŸ’–

okay bestie, welcome to netconsole-setup(8) β€” it's a page from netconsole-setup's Manual and it is genuinely so useful, i'm obsessed. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

netconsole-setup β€” dynamically configure Linux netconsole, no cap πŸŽ€


🌸 SYNOPSIS 🌸

netconsole-setup [[+][target-port]@]target-host ...

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, netconsole is a Linux kernel module, right? and what it does is it sends all kernel log messages over the network to another computer. literally all of them. πŸ“‘

the way it was designed… it wanted to be as instantaneous as possible, because its whole thing is enabling the logging of even the most critical kernel bugs. like when stuff is going so wrong that you need the receipts anyway. πŸ’€

and get this β€” it works from IRQ contexts</> as well, and it does not enable interrupts while sending packets. icon behaviour honestly. πŸ‘‘

but because of those unique needs, only these are supported, periodt:

  • IP networks
  • UDP packets
  • Ethernet devices

now, netconsole-setup is the bestie that makes configuring netconsole easy β€” it just takes the target hostname or IP address, that's it. it figures out all the needed configuration values from the running network device (like network interface, target IP and MAC address) so you don't have to. 🧚

you can specify multiple target hosts too. and each host can be prefixed with a target port and a plus sign to enable extended console support. slay.


πŸ’… OPTIONS πŸ’…

  • + β€” if present, enable extended console support for this host ✨
  • target-port β€” port for logging agent (kernel default is port 6666)
  • target-host β€” hostname or IP address for logging agent

🌈 EXAMPLES 🌈

this one sends all kernel log messages to host loghost. classic.
netconsole-setup loghost
and this one sends all kernel log messages to host loghost on port 4444 using the extended console support. fancy fr fr.
netconsole-setup +4444@loghost
two hosts at once?? main character energy. this sends all kernel log messages to host loghost1 on the default port and to host loghost2 on port 4444.
netconsole-setup loghost1 4444@loghost2

πŸ‘‘ AUTHOR πŸ‘‘

Benjamin Drung <benjamin.drung@cloud.ionos.com> β€” wrote the whole thing, we love him for it 🫢


and that's the tea, bestie πŸ’– this page is from netconsole-setup, dated 2018-10-30, living in section NETCONSOLE-SETUP(8) of your friendly neighbourhood manual. go log some kernels, you got this. πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from