Chapter 3. Netconsole

The netconsole kernel module enables logging of kernel messages over the network to another computer. It allows kernel debugging when disk logging fails or when using the serial console is not possible.

3.1. Configuring netconsole

This procedure describes how you can configure netconsole in Red Hat Enterprise Linux (RHEL) 8.

Prerequisites

The netconsole-service package is installed.

 ~]# yum install netconsole-service

Procedure

  1. Set the SYSLOGADDR to the IP address of the syslogd server in the /etc/sysconfig/netconsole file to match the IP address of the syslogd server. For example:

    SYSLOGADDR=192.168.0.1
  2. Restart the netconsole.service.

     ~]# systemctl restart netconsole.service
  3. Enable netconsole.service to run after rebooting the system.

     ~]# systemctl enable netconsole.service
  4. View the netconsole messages from the client in the /var/log/messages file (default) or in the file specified in rsyslog.conf.

     ~]# cat /var/log/messages