1.3. 명령줄에서 sos 보고서 생성

sos report 명령을 사용하여 RHEL 서버에서 sos 보고서를 수집합니다.

사전 요구 사항

  • sos 패키지가 설치되어 있습니다.
  • 루트 권한이 필요합니다.

절차

  1. sos report 명령을 실행하고 화면의 지시를 따릅니다. -upload 옵션을 추가하여 sos 보고서를 생성한 후 즉시 Red Hat에 전송할 수 있습니다.

    [user@server1 ~]$ sudo sos report
    [sudo] password for user:
    
    sos report (version 4.2)
    
    This command will collect diagnostic and configuration information from
    this Red Hat Enterprise Linux system and installed applications.
    
    An archive containing the collected information will be generated in
    /var/tmp/sos.qkn_b7by and may be provided to a Red Hat support
    representative.
    
    ...
    
    Press ENTER to continue, or CTRL-C to quit.
  2. (선택 사항) Red Hat에서 기술 지원 케이스를 이미 연 경우 케이스 번호를 입력하여 sos report file name에 삽입할 수 있으며, --upload 옵션을 지정한 경우 해당 케이스에 업로드됩니다. 케이스 번호가 없는 경우 이 필드를 비워 둡니다. 케이스 번호를 입력하는 것은 선택 사항이며 sos 유틸리티의 작동에는 영향을 미치지 않습니다.

    Please enter the case id that you are generating this report for []: <8-digit_case_number>
  3. 콘솔 출력 끝에 표시된 sos 보고서 파일 이름을 기록해 두십시오.

    ...
    Finished running plugins
    Creating compressed archive...
    
    Your sos report has been generated and saved in:
    /var/tmp/sosreport-server1-12345678-2022-04-17-qmtnqng.tar.xz
    
    Size    16.51MiB
    Owner   root
    md5     bba955bbd9a434954e18da0c6778ba9a
    
    Please send this file to your support representative.
참고
  • batch 옵션을 사용하여 대화형 입력을 요청하지 않고 sos 보고서를 생성할 수 있습니다.
[user@server1 ~]$ sudo sos report --batch --case-id <8-digit_case_number>
  • 또한 --clean 옵션을 사용하여 방금 수집한 보고서를 난독화할 수도 있습니다.
[user@server1 ~]$ sudo sos report --clean

검증 단계

  • sos 유틸리티가 명령 출력의 설명과 일치하는 /var/tmp/ 에 아카이브를 만들었는지 확인합니다.

    [user@server1 ~]$ sudo ls -l /var/tmp/sosreport*
    [sudo] password for user:
    -rw-------. 1 root root 17310544 Sep 17 19:11 /var/tmp/sosreport-server1-12345678-2022-04-17-qmtnqng.tar.xz