Friday, December 15

How to Generate a sosreport in RedHat Enterprise Linux (RHEL) 6&7



                      

             The sosreport command is a tool that collects configuration details, system information and diagnostic information from a Red Hat Enterprise Linux system. For instance: the running kernel version, loaded modules, and system and service configuration files. The command also runs external programs to collect further information, and stores this output in the resulting archive.

Note:  Sosreport is required when you have open a case with redhat for technical support. Redhat support Engineers will require sosreport of your server for troubleshooting purpose.

1.Install sosreport:

     Sos package is part of default installation in most of linux. If for any reason this package is no installed , then use below command to install SOS package :

        [root@bsrtech ~]# yum install sos

2. Generate sosreport:

It will ask for some information related to a support case. The script produces a .tar file. The location of the .tar file is given in the script output

 Note:  
In RHEL 6 Sosreport compressed file is saved under the folder  /tmp”
In RHEL 7 Sosreport compressed file is saved under the folder  /var/tmp”

[root@bsrtech ~]# sosreport

sosreport (version 3.4)

This command will collect diagnostic and configuration information from
this Red Hat Enterprise Linux system and installed applications.

An archive containing the collected information will be generated in
/var/tmp/sos.yuu3tH and may be provided to a Red Hat support
representative.

Any information provided to Red Hat will be treated in accordance with
the published support policies at:

  https://access.redhat.com/support/

The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.

No changes will be made to system configuration.

Press ENTER to continue, or CTRL-C to quit.

Please enter your first initial and last name [bsrtech.net]: abcreport
Please enter the case id that you are generating this report for []: 1234
 



Note: here “abcreport ” is first and last name, 1234 is case number.
 On completion, a compressed tarball will be created in /tmp,  along with a file containing the md5sum.
Setting up archive ...
 Setting up plugins ...
 Running plugins. Please wait ...

  Running 95/95: yum...              ...
Creating compressed archive...

Your sosreport has been generated and saved in:
  /var/tmp/sosreport-abcreport.1234-20171215194813.tar.xz

The checksum is: 288f57beb808419da8690e9bbc5393ba

Please send this file to your support representative.

[root@bsrtech ~]#

3.Find the sosreport file:


[root@bsrtech ~]# cd /var/tmp/
[root@bsrtech tmp]# ls
sosreport-abcreport.1234-20171215194813.tar.xz
sosreport-abcreport.1234-20171215194813.tar.xz.md5
 [root@bsrtech tmp]#



:: Linux - Legends ::