Depending on the used Linux distribution, different tools and commands are used to collect the required data.
Note: All commands require root privileges. A root shell can be obtained with the sudo -s command if the root account is not available.
Novell SUSE Linux Enterprise Server/Desktop (SLES/SLED) 10.x, 11.x and SLES for VMware 14.x
Note: Though these below steps explicitly refer to Novell SUSE Linux, they are also applicable to openSUSE.
SUSE Linux includes the supportconfig command to collect general system information and logs.
The generated file is stored at /var/log/nts_hostname_ date_time.tbz.
Usually, there is no need to install the supportutils package which contains the supportconfig command. However, it can manually be installed via YaST or zypper if it is not already installed. To use YaST to install the necessary package, run this command:
yast -i supportutils
Novell Support Advisor can be used as an alternative to collect diagnostic information from a SUSE Linux system. The client used to collect the diagnostic information runs on Linux and Microsoft Windows platforms. It can remotely collect diagnostic information from multiple systems and provides a graphical user interface.
Red Hat Enterprise Linux (RHEL) 4.6+, 5.x, 6.x,7.x
Note: Though these steps explicitly refer to Red Hat Enterprise Linux, they are also applicable to Oracle Linux, CentOS, Scientific Linux and Fedora.
Red Hat Enterprise Linux includes the sosreport command to collect general system information and logs.
sosreport is installed by default. It can be installed with yum install sos on RHEL 5 and newer or up2date sos on RHEL 4.7 or later, if it is not already installed.
The generated file is stored at /tmp/sosreport-* and is usually in the format tar.xz, gz, or bz2.