Lines Matching +full:boot +full:- +full:enabled
1 .. SPDX-License-Identifier: GPL-2.0
31 It can be used either built-in or as a module. As a built-in,
34 capture of early kernel panics, it does capture most of the boot
43 netconsole=[+][r][src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]
48 src-port source for UDP packets (defaults to 6665)
49 src-ip source IP to use (interface address)
51 tgt-port port for logging agent (6666)
52 tgt-ip IP address for logging agent
53 tgt-macaddr ethernet MAC address for logging agent (broadcast)
77 Built-in netconsole starts immediately after the TCP stack is
88 On distributions using a BSD-based netcat version (e.g. Fedora,
90 the -p switch::
92 nc -u -l -p <port>' / 'nc -u -l <port>
96 netcat -u -l -p <port>' / 'netcat -u -l <port>
102 socat udp-recv:<port> -
109 parameters reconfigured at runtime from a configfs-based userspace interface.
112 netconsole module (or kernel, if netconsole is built-in).
123 above) and are disabled by default -- they must first be enabled by writing
124 "1" to the "enabled" attribute (usually after setting parameters accordingly)
134 enabled Is this target currently enabled? (read-write)
135 extended Extended mode enabled (read-write)
136 release Prepend kernel release to message (read-write)
137 dev_name Local network interface name (read-write)
138 local_port Source UDP port to use (read-write)
139 remote_port Remote agent's UDP port (read-write)
140 local_ip Source IP address to use (read-write)
141 remote_ip Remote agent's IP address (read-write)
142 local_mac Local interface's MAC address (read-only)
143 remote_mac Remote agent's MAC address (read-write)
144 transmit_errors Number of packet send errors (read-only)
147 The "enabled" attribute is also used to control whether the parameters of
148 a target can be updated or not -- you can modify the parameters of only
149 disabled targets (i.e. if "enabled" is 0).
153 cat enabled # check if enabled is 1
154 echo 0 > enabled # disable the target (if required)
158 echo 1 > enabled # enable target again
164 Netconsole targets defined at boot time (or module load time) with the
169 Let's suppose you have two netconsole targets defined at boot time::
184 ----------------
187 dynamic configuration enabled. User data entries can be modified without
188 changing the "enabled" attribute of a target.
206 12,607,22085407756,-;This is a message
227 12,607,22085407756,-;This is a message
248 -------------------------------------
256 To enable task name auto-population::
260 When this option is enabled, the netconsole messages will include an additional
269 12,607,22085407756,-;This is a message
276 ------------------------------------------
280 (version) auto-population feature, which appends the kernel release information
283 To enable the release auto-population::
290 12,607,22085407756,-;This is a message
291 release=6.14.0-rc6-01219-g3c027fbd941d
301 --------------------------------------
308 To enable the CPU number auto-population::
312 When this option is enabled, the netconsole messages will include an additional
321 12,607,22085407756,-;This is a message
329 both keys will be reported, with the kernel-populated entry appearing after
332 # User-defined CPU entry
333 mkdir -p /sys/kernel/config/netconsole/target1/userdata/cpu
338 12,607,22085407756,-;This is a message
340 cpu=42 # kernel-populated value
344 --------------------------------------
348 auto-population feature, which assigns a numeric id to each message sent to a
351 The message ID is generated using a per-target 32 bit counter that is
369 13,434,54928466,-;This is message #1
371 13,435,54934019,-;This is message #2
379 is set to 1, extended console support is enabled. An example boot
389 If 'r' (release) feature is enabled, the kernel release version is
392 6.4.0,6,444,501151268,-;netconsole: network logging started
402 ncfrag=<byte-offset>/<total-bytes>
407 6,416,1758426,-,ncfrag=0/31;the first chunk,
408 6,416,1758426,-,ncfrag=16/31; the 2nd chunk.
429 ping -c 1 10.0.0.2 ; /sbin/arp -n | grep 10.0.0.2
435 default gateway (you may use /sbin/route -n to find it out) as the
452 dmesg -n 8
454 or by specifying "debug" on the kernel command line at boot, to send
456 can also be set using the "loglevel" kernel boot option. See the
457 dmesg(8) man page and Documentation/admin-guide/kernel-parameters.rst