Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Linux: How to Generate a Sos Report Log Bundle in Red Hat Enterprise Linux

Summary: This article explains how to generate a sos report for Red Hat Enterprise Linux (RHEL).

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

The sos report is a log bundle that collects various system logs, config files, and command output from a Linux system. It is a standardized way to collect diagnostic information from the operating system for investigation by Dell domain engineers and Linux vendor support.
 
NOTE: In RHEL 7 and earlier releases, the command to generate the log bundle was 'sosreport'. In RHEL 8 and later, the command is changed to 'sos report'. However, running 'sosreport' in RHEL 8 and later still works the same way. It automatically redirects to the 'sos report' command for legacy compatibility.

The 'sos package' provides the sos report command, which is typically installed by default in RHEL.

To verify the package installation:
# rpm -q sos
sos-4.5.1-3.el8.noarch
If for some reason the 'sos package' is not installed, it can be installed using the below command:
# yum install sos
To generate a sos report in interactive mode (run as root):
  • RHEL 8 and later:
# sos report
  • For RHEL 7 and earlier:
# sosreport
Optionally, include the –batch option to generate a sos report in noninteractive mode:
# sos report –-batch
Or
# sosreport --batch
The log bundle (and its associated checksum file) is typically be saved in /var/tmp/. Older versions of RHEL may save to a different location, but it is specified in the command output.

Example:
# ls /var/tmp/sosreport*
sosreport-rhel8vm-809520-2023-05-09-gbvkemd.tar.xz
sosreport-rhel8vm-809520-2023-05-09-gbvkemd.tar.xz.sha256
Once generated, the user may require a copy of the log bundle on a local system. Usually, users use an SCP utility such as 'WinSCP' to copy and download the file. This only requires SSH access to the server.

See Red Hat articles:

Article Properties


Affected Product

Red Hat Enterprise Linux Version 5, Red Hat Enterprise Linux Version 6, Red Hat Enterprise Linux Version 7, Red Hat Enterprise Linux Version 9, Red Hat Enterprise Linux Version 8, Red Hat Enterprise Virtualization 3

Last Published Date

14 Sep 2023

Version

2

Article Type

How To