[systemd-devel] Netconsole NG

poma pomidorabelisima at gmail.com
Sun Apr 6 19:26:33 PDT 2014


On 06.04.2014 19:40, Cristian Rodríguez wrote:
> El 06/04/14 13:42, Cristian Rodríguez escribió:
> 
>> Hrmm.. a systemd-netconsole.service that could setup this is a clean
>> race-free fashion will be a cool addition to the stack ;)
> 
> The question is.. as a separate tool or an extension to networkd, which 
> seems to be a more suitable place..
> 
> NetConsole=true
> 
> enable netconsole on this interface , networkd can then fill up at least 
> ${SRC_IP} ${SRC_DEV} ..other unit directives will be needed for 
> information that networkd does not have..
> 
> This hypothetical feature sounds significantly better than the current 
> hackish way...
> 

Yeah, but compared with your hypothetical and with the old style Kung Fu
netcon servo practically broken within the grand systemd schema,

/etc/init.d/netconsole

netpoll: netconsole: local port 12345
netpoll: netconsole: local IPv4 address 0.0.0.0
netpoll: netconsole: interface 'enp1s2'
netpoll: netconsole: remote port 12345
netpoll: netconsole: remote IPv4 address 192.168.1.1
netpoll: netconsole: remote ethernet address 00:11:22:33:44:55
netpoll: netconsole: device enp1s2 not up yet, forcing it
netpoll: netconsole: no IP address for enp1s2, aborting
netconsole: cleaning up


Netconsole NG is simple as it can be, and most importantly works in all
conditions,

/usr/lib/systemd/system/netconsole.service

netpoll: netconsole: local port 12345
netpoll: netconsole: local IPv4 address 192.168.1.2
netpoll: netconsole: interface 'enp1s2'
netpoll: netconsole: remote port 12345
netpoll: netconsole: remote IPv4 address 192.168.1.1
netpoll: netconsole: remote ethernet address 00:11:22:33:44:55
console [netcon0] enabled
netconsole: network logging started

netpoll: netconsole: local port 12345
netpoll: netconsole: local IPv4 address 192.168.1.2
netpoll: netconsole: interface 'enp1s2'
netpoll: netconsole: remote port 12345
netpoll: netconsole: remote IPv4 address 192.168.1.1
netpoll: netconsole: remote ethernet address 00:11:22:33:44:55
netpoll: netconsole: device enp1s2 not up yet, forcing it
console [netcon0] enabled
netconsole: network logging started


Now you can pursue the beauty of design. :)


poma




More information about the systemd-devel mailing list