第 1 章 Generating an sos report for technical support
With the sos utility, you can collect configuration, diagnostic, and troubleshooting data, and provide those files to Red Hat Technical Support.
1.1. What the sos utility does 复制链接链接已复制到粘贴板!
An sos report is a common starting point for Red Hat technical support engineers when performing analysis of a service request for a RHEL system. The sos utility (also known as sosreport) provides a standardized way to collect diagnostic information that Red Hat support engineers can reference throughout their investigation of issues reported in support cases. Using the sos utility helps to ensure that you are not repeatedly asked for data output.
The sos utility allows to collect various debugging information from one or more systems, optionally clean sensitive data, and upload it in a form of a report to Red Hat. More specifically, the three sos components do the following:
sos reportcollects debugging information from one system.注意This program was originally named
sosreport. Runningsosreportno longer works assos reporthas to be called instead, with the same arguments.-
sos collectallows to run and collect individualsosreports from a specified set of nodes. -
sos cleanobfuscates potentially sensitive information such as user names, host names, IP or MAC addresses, or other user-specified data.
The information collected in a report contains configuration details, system information, and diagnostic information from a RHEL system, such as:
- The running kernel version.
- Loaded kernel modules.
- System and service configuration files.
- Diagnostic command output.
- A list of installed packages.
The sos utility writes the data it collects to an archive named sosreport-<host_name>-<support_case_number>-<YYYY-MM-DD>-<unique_random_characters>.tar.xz.
The utility stores the archive and its SHA-256 checksum in the /var/tmp/ directory:
[root@server1 ~]# ll /var/tmp/sosreport*
total 18704
-rw-------. 1 root root 19136596 Jan 25 07:42 sosreport-server1-12345678-2022-01-25-tgictvu.tar.xz
-rw-r--r--. 1 root root 65 Jan 25 07:42 sosreport-server1-12345678-2022-01-25-tgictvu.tar.xz.sha256