You are on page 1of 7

RED HAT SYSTEM ADMINISTRATION I

3.8. Practice: Creating and Viewing an SoS


Report
Document Version: 2015-12-28

Copyright © 2015 Network Development Group, Inc.


www.netdevgroup.com

NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.

“Red Hat,” Red Hat Linux, and the Red Hat “Shadowman” logo are trademarks or registered trademarks of Red Hat, Inc. in the US
and other countries.
3.8. Practice: Creating and Viewing an SoS Report

Contents
Introduction ........................................................................................................................ 3
Outcomes ............................................................................................................................ 3
Lab Topology ....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Performance Checklist ................................................................................................ 6

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 2


3.8. Practice: Creating and Viewing an SoS Report

Introduction

In this lab, you will use the sosreport command to generate a SoS report, and then view
the contents of that diagnostic archive.

Outcomes

A compressed tar archive of system wide diagnostic information.

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 3


3.8. Practice: Creating and Viewing an SoS Report

Lab Topology

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 4


3.8. Practice: Creating and Viewing an SoS Report

Lab Settings

The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.

Virtual Machine IP Address Account Password


(if needed) (if needed)

Server1 Machine 172.25.1.11 student student

Desktop1 Machine 172.25.1.10 student student

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 5


3.8. Practice: Creating and Viewing an SoS Report

1 Performance Checklist

Before you begin...

Access the graphical login screen of the Server1 virtual machine.

The topology includes two virtual machines that are accessible to users. Take care to
perform the tasks as instructed, including using the appropriate virtual machine as
directed.

1. Log in as student using the password student.

2. Open a terminal window that will provide a bash prompt.

Select Applications → Utilities → Terminal.

3. If currently working as a non-root user, switch to root.

[student@server1 ~]$ su -
Password: redhat

4. Run the sosreport command. This may take many minutes on larger systems.

[root@server1 ~]# sosreport

a. Press Enter.

b. Provide the requested information. Make up a value for the case number.

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 6


3.8. Practice: Creating and Viewing an SoS Report

5. Press Enter to generate the report.

6. Change directory to /var/tmp, and unpack the archive.

[root@server1 ~]# cd /var/tmp


[root@server1 tmp]# tar –xvJf sosreport-*.tar.xz

7. Change directory to the resulting subdirectory and browse the files found there.

[root@server1 tmp]# cd sosreport-*

Your directory will differ depending on the values provided in Step 4.

[root@server1 sosreport-yourname.casenumber-date]# ls -lR

8. Open files, list directories, and continue to browse to become familiar with the
information included in SoS reports. In the form of the original archived and
compressed file, this is the diagnostic information you would be attaching to a
redhat-support-tool support case. When finished, remove the archive
directory and files and return to your home directory.

[root@server1 sosreport-name.casenumber-date]# cd /var/tmp


[root@server1 tmp]# rm –rf sosreport*
[root@server1 tmp]# exit

9. Finish your session with the bash shell.

[student@server1 ~]$ exit

12/28/2015 Copyright © 2015 Network Development Group, Inc. www.netdevgroup.com Page 7

You might also like