LINUX Operating System Data Collection

 

Use the following steps to gather system and troubleshooting data from a Linux based server.  Note that some commands and utilities differ depending on the Linux distribution and the server model.

 

1)      Collect system and OS configuration:

a.       For Red Hat Linux (including variants such as Fedora and CentOS)

                                                               i.      Collect an sosreport as follows (older versions will have sysreport)

# sosreport –report

 

Optional: Enter your company name when prompted.

Optional: Enter your Zensar case ID when prompted.

 

Note the resulting file created under /tmp.

 

If a directory other than /tmp is desired use the option

 --tmp-dir <directory>

 

b.      For SUSE Enterprise Server

                                                               i.      Collect a supportconfig as follows

# supportconfig –A

 

ii. Older versions will have siga. Run as follows

# siga no

 

 

2)      If possible, also install and run the cfg2html script as follows:

a.       Go to http://www.cfg2html.com/ for the latest versions.

b.      Move the file into an empty working directory and unpack the file.

c.       Run the script as root user: # ./cfg2html-linux

d.      Once the script completes package the contents of the working directory:

tar cvf cfg2html.out.tar *

gzip cfg2html.out.tar

 

3)      If the problem is related to a system crash event, include the resulting vmcore file (typically found under /var/crash).

 

 

4)      Gather the files from the above steps and package them into a single compressed tar file.  For example:

a.       Move all files into a single directory (for example /tmp/logs)

b.      Tar all of the files into a single archive file.

# cd /tmp/logs/

# tar cvf systemlogs.tar *

c.       Compress the files using a utility such as gzip

# gzip systemlogs.tar

 

Submitting data to Technical Support