1 개요[ | ]
- sosreport; sos
- /usr/sbin/sosreport
- 리눅스 SOS 보고서
- 리눅스 SOS REPORT
- 리눅스 시스템 트러블슈팅 정보 수집 도구
- 시스템에 대한 디버깅 정보(설정 정보)들을 수집하고 /tmp 폴더에 압축파일을 만들어 준다.
2 방법 1: 기본 실행[ | ]
- 명령어
Bash
Copy
sosreport
- 실행예시
Console
Copy
[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 키 입력
Console
Copy
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 키 입력
Console
Copy
Please enter your first initial and last name [jmnote]:
Please enter the case number that you are generating this report for:
- ↵ Enter, ↵ Enter 키 입력
Console
Copy
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: 수집 범위 지정[ | ]
- 명령어
Bash
Copy
sosreport -o hardware -o kernel -o networking -o udev -o system -o rpm
- 실행예시
Console
Copy
[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 키 입력
Console
Copy
Please enter your first initial and last name [localhost]:
Please enter the case number that you are generating this report for:
↵ Enter 키 2회 입력
Console
Copy
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 대신 아래 방법으로 유사한 자료를 수집할 수 있다.
Bash
Copy
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 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 리눅스 (19)
- /usr/sbin (1)
CentOS JDK 설치 ― …CentOS JDK 설치 ― ElliottCentOS vsftpd 설치 및 설정 ― …CentOS에서 apt-get 실행해보기 ― …CentOS에서 apt-get 실행해보기 ― 다미안VirtualBox 리눅스 인터넷 연결 ― …VirtualBox 리눅스 인터넷 연결 ― JmnoteVirtualBox 리눅스 인터넷 연결 ― …리눅스 CPU 사용률 확인 ― 동원잉리눅스 JDK 버전 확인 ― …리눅스 JDK 버전 확인 ― Jmnote리눅스 SSH 패스워드 없이 자동 로그인 ― …리눅스 SSH 패스워드 없이 자동 로그인 ― Jmnote리눅스 날짜 기준으로 파일 삭제하기 ― 백승현리눅스 날짜 기준으로 파일 삭제하기 ― Jmnote리눅스 디렉토리 용량 확인 du ― …리눅스 메모리 사용률 확인 ― 최재완리눅스 메모리 사용률 확인 ― Jmnote좀비 프로세스 찾기, 죽이기 ― 불량펭귄