During a stroll through the filesystem I encountered an executable (a python script actually) called ‘sosreport’. You’ve got to admit: the name sounds intriguing.
The man-page says ‘Generate debugging information for this system’. This is getting even more interesting…
Lets run it!
sosreport (version 1.7)
sosreport requires root permissions to run.
The utility requires root permissions. Not very surprising, root got all permissions to get internal system information.
Again, now as root:
sosreport (version 1.7)
This utility will collect some detailed information about the
hardware and setup of your Red Hat Enterprise Linux system.
The information is collected and an archive is packaged under
/tmp, which you can send to a support representative.
Red Hat will use this information for diagnostic purposes ONLY
and it will be considered confidential information.
This process may take a while to complete.
No changes will be made to your system.
Press ENTER to continue, or CTRL-C to quit.
Please enter your first initial and last name [localhost]: frits hoogland
Please enter the case number that you are generating this report for: 9999
Creating compressed archive...
Your sosreport has been generated and saved in:
The md5sum is: 8bac4b5ccbb8c1a79dd6571f293400ad
Please send this file to your support representative.
Let’s see what it provides, and see if it got any benefits above Oracle’s RDA…
It produces two files in /tmp:
-rw-r--r-- 1 root root 33 May 1 14:34 sosreport-fritshoogland.9999-725705-3400ad.tar.bz2.md5
-rw------- 1 root root 631098 May 1 14:34 sosreport-fritshoogland.9999-725705-3400ad.tar.bz2
The list of files when extracting sosreport-fritshoogland.9999-725705-3400ad.tar.bz2 simply is too big to put in the blogpost.
It contains all linux configuration files (yes, that’s a bold statement), all startup/shutdown scripts, all kind of current system information (dmidecode, lsmod, lspci, netstat, iptables, rpm, network routes, LVM, device mapper, EMC multipathing, etc.), could go on and on!
This command is able to let anyone who can get access to the system make a file with all relevant settings for troubleshooting. That’s handy! It’s very hard to get information about network configuration, firewall (iptables), etc. out of inexperienced administrators. This command lets you get all information so you can do the troubleshooting out of the archive instead of a question and answer game with the administrator!