리눅스 sosreport

1 개요[ | ]

sosreport; sos
/usr/sbin/sosreport
리눅스 SOS 보고서
리눅스 SOS REPORT
  • 리눅스 시스템 트러블슈팅 정보 수집 도구
  • 시스템에 대한 디버깅 정보(설정 정보)들을 수집하고 /tmp 폴더에 압축파일을 만들어 준다.

2 방법 1: 기본 실행[ | ]

명령어
sosreport
실행예시
[root@zetawiki ~]# sosreport

sosreport (version 1.7)

plugin openais.py does not install, skipping
could not load plugin openais.py
This utility will collect some detailed  information about the
hardware and  setup of your  Enterprise Linux  system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
This information will be used 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.

One or more plugins have detected a problem in your configuration.
Please review the following messages:
Enter 키 입력
cluster:
    * required module is not loaded: dlm
    * service cman is not running
    * service cman is not started in default runlevel
    * service rgmanager is not running
    * service rgmanager is not started in default runlevel
    * cluster node is not quorate
    * /etc/cluster/cluster.conf is missing

Are you sure you would like to continue (y/n) ?
Y, Enter 키 입력
Please enter your first initial and last name [jmnote]: 
Please enter the case number that you are generating this report for:
Enter, Enter 키 입력
 plugin rpm finished ...                       
 Completed.

Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-jmnote-314360-40345e.tar.bz2

The md5sum is: 12345bb0aaaf02c05dafb37f9f40345e

Please send this file to your support representative.
→ /tmp 폴더에 sosreport-jmnote-314360-40345e.tar.bz2 라는 이름으로 보고서 파일이 생성되었다.

3 방법 2: 수집 범위 지정[ | ]

명령어
sosreport -o hardware -o kernel -o networking -o udev -o system -o rpm
실행예시
[root@localhost ~]# sosreport -o hardware -o kernel -o networking -o udev -o system -o rpm

sosreport (version 2.1)

This utility will collect some detailed  information about the
hardware and setup of your Fedora system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
Fedora 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.

Enter 키 입력

Please enter your first initial and last name [localhost]: 
Please enter the case number that you are generating this report for:

Enter 키 2회 입력

  Running plugins. Please wait ...

  Completed [6/6] ...      
Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-localhost-20120330122910-0374.tar.xz

The md5sum is: 12b3f4ca5b678ef90ef1f88f23aa4567

Please send this file to your support representative.
→ /tmp 폴더에 sosreport-localhost-20120330122910-0374.tar.xz 라는 이름으로 보고서 파일이 생성되었다.

4 방법 3: 대체 명령어[ | ]

sosreport 대신 아래 방법으로 유사한 자료를 수집할 수 있다.

mkdir my_sosreport
cd my_sosreport
cat /etc/hosts > hosts.txt
cat /etc/fstab > fstab.txt
cat /boot/grub/grub.conf > grub.conf
cat /proc/partitions > partitions.txt
cat /etc/modprobe.conf > modprobe.conf.txt
df -h > df_-h.txt
ps aux > ps_aux.txt
free -m > free_-m.txt
ifconfig > ifconfig.txt
chkconfig --list > chkconfig_--list.txt
tar cvzf netconfig.tar.gz /etc/sysconfig/*
tar cvzf syslog.tar.gz /var/log/*
cd ..
TODAY=`date +%Y%m%d`
tar cvzf my_sosreport.$HOSTNAME.$TODAY.tgz ./my_sosreport
rm -rf ./my_sosreport
ll my_sosreport*

my_sosreport.호스트명.날짜.tgz 라는 이름으로 생성된다.

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}