Ubuntu: Come generare un bundle di log sosreport in Ubuntu Linux Server

Summary: Questo articolo spiega come generare un pacchetto di log sosreport per 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

Il report sos è un pacchetto di log che raccoglie vari registri di sistema, file di configurazione e output di comando da un sistema Linux. Si tratta di un metodo standardizzato per raccogliere informazioni diagnostiche dal sistema operativo affinché vengano analizzate dagli ingegneri del dominio Dell e dal supporto dei vendor Linux.

In Ubuntu Linux Server, il pacchetto 'sosreport' fornisce il comando sos report, che in genere viene installato per impostazione predefinita.

Per verificare l'installazione del pacchetto:

$ 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

Se per qualche motivo il pacchetto 'sosreport' non è installato, può essere installato usando il seguente comando: 

$ sudo apt install sosreport

Per generare un report SOS in modalità interattiva, utilizzare uno dei seguenti comandi:

$ sudo sosreport

Or

$ sudo sos report
Nota: Il comando 'sosreport' è deprecato a favore della sintassi più recente 'sos report'. Tuttavia, entrambi i formati funzionano a partire da Ubuntu 22.04 LTS.
 

Facoltativamente, includere il --batch Opzione per una modalità non interattiva:

$ sudo sos report -–batch

Il pacchetto di log (e il file checksum associato) viene in genere salvato in /tmp/. Le versioni precedenti di Linux possono essere salvate in una posizione diversa, ma è specificato nell'output del comando.

Esempio:

$ ls /tmp/sosreport*
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.tar.xz
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.tar.xz.sha256

Una volta generato, l'utente potrebbe richiedere una copia del pacchetto di log su un sistema locale. In genere, gli utenti utilizzano un'utilità SCP come 'WinSCP' per copiare e scaricare il file. Ciò richiede solo l'accesso SSH al server.

Consultare il report SOS della documentazione di Ubuntu - Raccogliere e creare pacchetti di dati di diagnostica e supporto Questo link ipertestuale indirizza a un sito web esterno a 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.