Issue
- What is a sosreport andhow do I create one?
- How do I generate a sosreport?
Environment
- Red Hat Enterprise Linux 4.6+
- Red Hat Enterprise Linux 5+
- Red Hat Enterprise Linux 6+
Resolution
The sosreport command is atool that collects
To run a sosreport, thesos package must be installed.The package should be installed by default, but if the package isnot installed, follow the steps below:
Red Hat Enterprise Linux 4 Update 6 orlater
If the system is registered with Red Hat Network (RHN),sos can be installed using theup2date command:
# up2date sos
Red Hat Enterprise Linux 5 and later
If the system is registered with RHN, use the yum command:
# yum install sos
If the system is not registered with RHN, the sos package can be downloaded from the RHNwebsite or found on the installation CDs. The rpm command can be used to install thepackage on any version of Red Hat Enterprise Linux:
# rpm -Uvh sos-<version>.<arch>.rpm
Once the package has been installed, issue the followingcommand:
Note: sosreport requires rootpermissions to run.
# sosreport
The sosreport will run for several minutes, according todifferent system, the running time maybe more longer.
Once completed, sosreportwill generate a compressed a bz2 file under/tmp. Providethis file to the support representative.
Normally, the size of the bz2 file will be about 3MB, but if your system has alarge amount of log files, it maybe very big.
The sosreport has some plugins which can be turned on/off, thefollowing command lists the plugins:
# sosreport -l
For example, turning off the rpmva plugin will save time runningsosreport.
# sosreport -k rpm.rpmva=off
Note:
1. In Red Hat Enterprise Linux 4.5 and earlier, use sysreport instead: What is a sysreportand how do I run it ?
2. In the sos package,there is also a command called sysreport, but it is just a soft link tothe sosreport command:
# ls -l /usr/sbin/sysreport
lrwxrwxrwx 1 root root 19 Nov 3 2008 /usr/sbin/sysreport -> /usr/sbin/sosreport
If you do want to use the legacy version of sysreport, please use the sysreport.legacy commandin sos package.