How to create SOSREPORT

Posted: May 4, 2011 in Redhat
Tags:

What is an “sosreport” and how do I create it in Red Hat Enterprise Linux 4.6 and later?

Issue

The “sosreport” command is a tool that collects information about a Red Hat Enterprise Linux system, such as what kernel is running, what drivers are loaded, and various configuration files for common services. It also does some simple diagnostics against known problematic patterns.

Environment

  • Red Hat Enterprise Linux 4.6 and later

Resolution

To run  “sosreport”, the “sos” package must be installed. The package should be installed by default, but if the package is not installed, follow the steps below:

Red Hat Enterprise Linux 4.6 and later

If the system is registered with Red Hat Network (RHN), “sos” can be installed using the up2date 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 RHN website or found on the installation CDs. The RPM command can be used to install the package on any version of Red Hat Enterprise Linux:

# rpm -Uvh sos-<version>.<arch>.rpm 

Once the package has been installed, issue the following command:

Note: sosreport requires root permissions to run.

# sosreport

The sosreport will run for several minutes, according to different system, the running time maybe more longer.

Once completed, “sosreport” will generate a compressed a bz2 file under /tmp. Provide this file to the support representative.

Normally, the size of the bz2 file will be about 3MB, but if your system has a large amount of log files, it maybe very big.

The sosreport has some plugins which can be turn on/off, the following command lists the plugins:

# sosreport -l 

For example, turning off the rpmva plugin will save time running sosreport.

# sosreport -k rpm.rpmva=off 

Note:

1. Before Red Hat Enterprise Linux 4.5, please use “sysreport” instead: What is a sysreport and how do I run it ?

2. In the sos package, there is also a command called “sysreport”, but it is just a soft link to the 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 command in sos package.

Ref : Redhat.com

Advertisements
Comments
  1. Pretty cool website design… and the sos report info was helpful… my linux box can’t use yum (package not installed), how do I enable it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s