create sosreport on Linux

How To Generate SOSReport For Analysing Issues

How To Generate SOSReport is a very useful command in Linux which used to collect the information including system configuration and diagnostic information like running kernel version, loaded modules etc. 

SOSReport plays a vital role in troubleshooting your Linux machine to find out the issues on OS level.

Check Out : Features of Redhat 8 Beta Version Recently Released

In order to run the command, this SOS should be installed on your system and if not then need to install it.

Check whether installed or not by  

rpm –qa | grep sos

if you find the packages installed, the run the below command

sosreport  

After running this command it will ask you the enter the name and then press enter for next prompt too.

Check Out : How To Send Root Mail To existing User On Redhat 7

It will take some time to generate the report.

Now report has been generated under the directory /var/tmp/. There are other option available in sosreport let’s have a look

To list available module (Plugins in), use this  

sosreport –l

If you want to turn off a module keep it separate by comma, suppose I have to turn off module sar and usb. Now disable the module available with –n options.

Check Out : RPM useful Commands List

sosreport –n sar,usb

If system have lots packages installed on the Server it’s gonna take lot of time to generate the report. So we decided to disable the rpm package verification with –K option.

sosreport –K rpm.rpmva=off

That’s it.

2 COMMENTS

  1. wonderful publish, very informative. I wonder why the other experts of this sector don’t
    understand this. You should proceed your writing. I’m confident, you have a great readers’
    base already!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

15 − four =