Ubuntu: How to generate an sosreport log bundle in Ubuntu Linux Server

Summary: This article explains how to generate a sosreport log bundle for Ubuntu Linux Server.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

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.

In Ubuntu Linux Server, the 'sosreport' package provides the sos report command, which is typically installed by default.

To verify the package installation:

$ dpkg -l sosreport
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version              Architecture Description
+++-==============-====================-============-=========================================================
ii  sosreport      4.4-1ubuntu1.22.04.1 amd64        Set of tools to gather troubleshooting data from a system

If for some reason the 'sosreport' package is not installed, it can be installed using the below command: 

$ sudo apt install sosreport

To generate a sos report in interactive mode, use either of the following commands:

$ sudo sosreport

Or

$ sudo sos report
Note: The 'sosreport' command is deprecated in favor of the newer syntax 'sos report'. However, either format works as of Ubuntu 22.04 LTS.
 

Optionally, include the --batch option for a noninteractive mode:

$ sudo sos report -–batch

The log bundle (and its associated checksum file) is typically saved in /tmp/. Older versions of Linux may save to a different location, but it is specified in the command output.

Example:

$ ls /tmp/sosreport*
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.tar.xz
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.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 Ubuntu documentation sos report - Collect and package diagnostic and support data This hyperlink is taking you to a website outside of Dell Technologies.

Additional Information

Affected Products

Ubuntu Server LTS

Products

PowerEdge C6420, PowerEdge C6520, PowerEdge C6525, PowerEdge C6615, PowerEdge C6620, PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge MX5016s, PowerEdge MX740C, PowerEdge MX750c, PowerEdge MX760c, PowerEdge MX840C , PowerEdge R240, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350, PowerEdge R360, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T140, PowerEdge T150, PowerEdge T160, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640 ...
Article Properties
Article Number: 000217358
Article Type: How To
Last Modified: 19 Dec 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.