What is a sysreport and how to run it in Red Hat Enterprise Linux?

Updated -

Issue

The support tech I was working with asked me to run a sysreport, what is a sysreport and how do I run it?

Environment

Red Hat Enterprise Linux 4.5 and earlier, Red Hat Enterprise Linux 5.0 (not in later releases of RHEL 5)

Resolution

"sysreport" is a script that collects information about a system, such as what kernel is running, what drivers are loaded, and various configuration files for common services. It has been depreciated in favor of the new and improved sosreport.

To run a sysreport you will first need to have the sysreport package installed. If you have registered the system with Red Hat Network (RHN) it can be installed using up2date command for Red Hat Enterprise Linux 4:

# up2date sysreport

If you do not have your system registered with RHN, you can install the sysreport package from your CDs using RPM:

# rpm -Uvh sysreport-<version>.<arch>.rpm

Once the package has been installed, issue the following command as root user:

# sysreport

Once completed, sysreport will generate a compressed tar file in /tmp. Provide this file to your support representative.

WARNING: During the running of the command sysreport you will be prompted for your name and/or case number, use ONLY letters and/or numbers when filling out this field. Adding other characters could damage the system or render the sysreport unusable!

2 Comments

During sosreport getting error - suggest
[root@ct11vts02 tmp]# SOSREPORT
-bash: SOSREPORT: command not found
[root@ct11vts02 tmp]# sosreport
File "/usr/sbin/sosreport", line 409

^
SyntaxError: invalid syntax
[root@ct11vts02 tmp]#

Hi,

I am trying to get the sosreport - but there is no reposne - i tried the folowing:
login as: root
Authenticating with public key "imported-openssh-key"
Last login: Sun May 18 10:39:59 2014 from 212.150.25.34
[root@domU-12-31-39-06-3E-ED ~]# sosreport

sosreport (version 2.2)

This utility will collect some detailed information about the
hardware and setup of your Red Hat Enterprise Linux system.
The information is collected and an archive is packaged under
/tmp, which you can send to a support representative.
Red Hat Enterprise Linux will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.

Press ENTER to continue, or CTRL-C to quit.

Please enter your first initial and last name [domU-12-31-39-06-3E-ED]: hholende r
Please enter the case number that you are generating this report for [None]: 010 42686

^CAll processes ended, cleaning up.
[root@domU-12-31-39-06-3E-ED ~]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 99G 3.0G 95G 3% /
[root@domU-12-31-39-06-3E-ED ~]# sosreport -l

sosreport (version 2.2)

The following plugins are currently enabled:

acpid acpid related information
auditd Auditd related information
bootloader Bootloader information
cgroups cgroup subsystem information
cluster cluster suite and GFS related information
crontab Crontab information
devicemapper device-mapper related information (dm, lvm, multipath)
dovecot dovecot server related information
filesys information on filesystems
gdm gdm related information
general basic system information
gluster gluster related information
hardware hardware related information
hts Red Hat Hardware Test Suite related information
i18n i18n related information
iscsi iscsi-initiator related information
kdump Kdump related information
kernel kernel related information
ldap LDAP related information
libraries information on shared libraries
libvirt libvirt-related information
logrotate logrotate configuration files and debug info
lsbrelease Linux Standard Base information
memory memory usage information
mrggrid MRG GRID related information
mrgmessg MRG Messaging related information
mysql MySQL related information
networking network related information
ntp NTP related information
openssl openssl related information
pam PAM related information
pgsql PostgreSQL related information
printing printing related information (cups)
process process information
psacct Process accounting related information
rpm RPM information
samba Samba related information
sanlock sanlock-related information
sar Generate the sar file from /var/log/sa/saXX files
selinux selinux related information
sendmail sendmail information
ssh ssh-related information
startup startup information
sunrpc Sun RPC related information
system core system related information
udev udev related information
vdsm VDSM server related information
x11 X related information
xinetd xinetd information
yum yum information

The following plugins are currently disabled:

amd Amd automounter information
anaconda Anaconda / Installation information
apache Apache related information
autofs autofs server-related information
cloudforms CloudForms related information
cobbler cobbler related information
corosync corosync information
cs Certificate System 7.x Diagnostic Information
dhcp DHCP related information
ds Directory Server information
emc EMC related information (PowerPath, Solutions Enabler CLI and Navis phere CLI)
ftp FTP server related information
infiniband Infiniband related information
initrd initrd related information
ipa IPA diagnostic information
ipsec ipsec related information
iscsitarget iscsi-target related information
kernel_realtime Information specific to the realtime kernel
kvm KVM related information
named named related information
netdump Netdump Configuration Information
nfsserver NFS server-related information
nscd NSCD related information
oddjob oddjob related information
openswan ipsec related information
postfix mail server related information
ppp ppp, wvdial and rp-pppoe related information
pxe PXE related information
qpidd Messaging related information
quagga quagga related information
radius radius related information
rhn RHN Satellite related information
rhui Red Hat Update Infrastructure for Cloud Providers
s390 s390 related information
sanitize sanitize specified log files, etc
smartcard Smart Card related information
snmp snmp related information
soundcard Sound card information
squid squid related information
sssd sssd-related Diagnostic Information
systemtap SystemTap information
tftpserver tftpserver related information
tomcat Tomcat related information
veritas veritas related information
vmware VMWare related information
xen Xen related information

The following plugin options are available:

auditd.syslogsize 15 max size (MiB) to collect per syslog file
cluster.gfslockdump off gather output of gfs lockdumps
cluster.lockdump off gather dlm lockdumps
devicemapper.lvmdump off collect an lvmdump
filesys.dumpe2fs off dump filesystem information
general.syslogsize 15 max size (MiB) to collect per syslog file
general.all_logs off collect all log files defined in syslog.conf
kernel.modinfo on gathers information on all kernel modules
libraries.ldconfigv off the name of each directory as it is scanned, and any links that are created.
networking.traceroute off collects a traceroute to rhn.redhat.com
pgsql.pghome /var/lib/pgsql PostgreSQL server home directory (default=/var/l ib/pgsql)
pgsql.username off username for pg_dump (default=postgres)
pgsql.password off password for pg_dump (default=None)
pgsql.dbname off database name to dump for pg_dump (default=None)
pgsql.dbhost off hostname/IP of the server upon which the DB is running (def ault=localhost)
pgsql.dbport off database server port number (default=5432)
printing.cups 50 max size (MiB) to collect per cups log file
psacct.all off collect all process accounting files
rpm.rpmq on queries for package information via rpm -q
rpm.rpmva off runs a verify on all packages
selinux.fixfiles off Print incorrect file context labels
selinux.list off List objects and their context
startup.servicestatus off get a status of all running services
vdsm.logsize off max size (MiB) to collect per log file
yum.yumlist off list repositories and packages
yum.yumdebug off gather yum debugging data

[root@domU-12-31-39-06-3E-ED ~]# sosreport

sosreport (version 2.2)

This utility will collect some detailed information about the
hardware and setup of your Red Hat Enterprise Linux system.
The information is collected and an archive is packaged under
/tmp, which you can send to a support representative.
Red Hat Enterprise Linux will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.

Press ENTER to continue, or CTRL-C to quit.

Please enter your first initial and last name [domU-12-31-39-06-3E-ED]: hholender
Please enter the case number that you are generating this report for [None]: 01042686