Operations 4 min read

How to Generate Comprehensive Linux System Reports with sosreport

This guide explains what sosreport does on RHEL/CentOS, how to install the sos package, generate a system diagnostic report, locate the compressed output, and use various command‑line options to include or exclude specific modules.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Generate Comprehensive Linux System Reports with sosreport

sosreport is a command on RHEL/CentOS that collects system configuration and diagnostic information such as kernel version, loaded modules, and service configuration files, and stores the output in a compressed report file.

The report is required when you need Red Hat technical support, as support engineers will ask for the sosreport to troubleshoot issues.

sosreport example
sosreport example

To run sosreport you must have the sos package installed; if it is missing, install it with:

# yum install sos

Generate Report

Open a terminal and execute: # sosreport The command usually finishes within a few minutes, creating a compressed file in the /tmp directory (using gz, bz2, or xz depending on the version). This file should be provided to Red Hat support as an attachment. Note that sosreport requires root privileges.

sosreport command options

sosreport has a modular structure; you can list available modules (plugins) with: # sosreport -l To disable specific modules, pass a comma‑separated list to the -n (or --skip-plugins) option, e.g. to skip the kvm and amd modules: # sosreport -n kvm,amd Modules can also receive extra options via the -k flag. For example, to turn off the time‑consuming rpm -Va collection in RHEL 5:

# sosreport -k rpm.rpmva=off
operationsLinuxCentOSRHELsosreportsystem diagnostics
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.