How to Configure Netdump Client on Linux

Linux Netdump

Netdump is used to transport kernel core memory images to a remote server during a crash. In this article, I will show you some useful commands to setup netdump on Linux.

1) Check Netdump Package

To check whether “netdump” package has already been installed or not

# rpm –qa | grep netdump

2) Install Netdump

If it is not installed, install netdump using the following command:

# up2date -i netdump

3) Verify Package

To double check the installed package and configuration files

# rpm –qa | grep netdump

Note: Netdump configuration file path.

Configuration File Path : /etc/sysconfig/netdump
Private Key Path : /etc/sysconfig/netdump_id_dsa
Public Key Path : /etc/sysconfig/

4) Netdump Configuration

Only to update the following configuration options in /etc/sysconfig/netdump

server1:/root# sed '/ *#/d; /^ *$/d' /etc/sysconfig/netdump

5. Update key file

To update netdump master server’s generic private/public key files to their respective path on netdump client server

# scp [email protected]:/home/ndump/generic_netdump_key /etc/sysconfig/netdump_id_dsa

# scp [email protected]:/home/ndump/ /etc/sysconfig/

6) Setup sysctl.conf file

Setup “sysrq” kernel parameter in proc as well as /etc/sysctl.conf

# sysctl –a | grep sysrq #### checking it’s current value
# sysctl -w kernel.sysrq=1 #### Set to “1” if it is not previously set.
# echo “kernel.sysrq = 1” >> /etc/sysctl.conf #### Adding entry in sysctl.conf to make it persistent in reboots.

7) Start netdump

To start netdump service, use below command

  • # service netdump start

To double check the netdump process/module

# service netdump status

# lsmod | grep -i netconsole

Thanks for reading this article and let me know your comments.

Read Also:

Bobbin Zachariah 7:28 am

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author's All Posts
Like to become part of Linoxide Team and contribute tips? Contact us here.


Your email address will not be published. Required fields are marked *

All comments are subject to moderation.