Skip to main content
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

로그 수집 구성

기여자 netapp-yvonneo netapp-aoife aclose-ntap

이더넷 스위치 상태 모니터(CSHM)는 클러스터 및 스토리지 네트워크 스위치의 작동 상태를 보장하고 디버깅 목적으로 스위치 로그를 수집하는 역할을 합니다. 이 절차에서는 AutoSupport 에서 수집하는 주기적 데이터의 매시간 수집을 활성화하고, 자세한 지원 로그를 요청하고, 수집을 설정하는 과정을 안내합니다.

참고: FIPS 모드를 활성화하는 경우 다음을 완료해야 합니다.

참고
  1. 공급업체의 지침을 사용하여 스위치에서 SSH 키를 다시 생성합니다.

  2. ONTAP 에서 SSH 키를 재생성하려면 다음을 사용하세요. debug system regenerate-systemshell-key-pair

  3. 다음을 사용하여 로그 수집 설정 루틴을 다시 실행하세요. system switch ethernet log setup-password 명령

시작하기 전에

  • 사용자는 스위치에 액세스할 수 있어야 합니다. show 명령. 이러한 권한이 없는 경우 새 사용자를 만들고 해당 사용자에게 필요한 권한을 부여하세요.

  • 스위치에 대해 스위치 상태 모니터링을 활성화해야 합니다. 이를 확인하려면 다음을 확인하세요. Is Monitored: 필드는 출력에서 *true*로 설정됩니다. system switch ethernet show 명령.

  • Broadcom 및 Cisco 스위치를 사용한 로그 수집:

    • 로컬 사용자는 네트워크 관리자 권한이 있어야 합니다.

    • 로그 수집이 활성화된 각 클러스터 설정에 대해 스위치에 새 사용자를 만들어야 합니다. 이러한 스위치는 동일한 사용자에 대해 여러 개의 SSH 키를 지원하지 않습니다. 추가 로그 수집 설정을 수행하면 해당 사용자의 기존 SSH 키가 덮어쓰여집니다.

  • NVIDIA 스위치로 로그 수집을 지원하려면 로그 수집을 위한 _user_가 다음을 실행할 수 있어야 합니다. cl-support 비밀번호를 제공하지 않고도 명령을 실행할 수 있습니다. 이러한 사용을 허용하려면 다음 명령을 실행하세요.

    echo '<user> ALL = NOPASSWD: /usr/cumulus/bin/cl-support' | sudo EDITOR='tee -a' visudo -f /etc/sudoers.d/cumulus

단계

ONTAP 9.15.1 이상
  1. 로그 수집을 설정하려면 각 스위치에 대해 다음 명령을 실행합니다. 로그 수집을 위해 스위치 이름, 사용자 이름, 비밀번호를 입력하라는 메시지가 표시됩니다.

    참고: 사용자 지정 프롬프트에 *y*로 응답하는 경우 사용자에게 다음에 설명된 대로 필요한 권한이 있는지 확인하십시오.시작하기 전에 .

    system switch ethernet log setup-password
    cluster1::*> system switch ethernet log setup-password
    Enter the switch name: <return>
    The switch name entered is not recognized.
    Choose from the following list:
    cs1
    cs2
    
    cluster1::*> system switch ethernet log setup-password
    
    Enter the switch name: cs1
    Would you like to specify a user other than admin for log collection? {y|n}: n
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
    
    cluster1::*> system switch ethernet log setup-password
    
    Enter the switch name: cs2
    
    Would you like to specify a user other than admin for log collection? {y|n}: n
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
참고 CL 5.11.1의 경우, 사용자 cumulus*를 생성하고 다음 프롬프트에 *y*로 응답합니다. 로그 수집에 admin이 아닌 다른 사용자를 지정하시겠습니까? {y|n}: *y
  1. 주기적 로그 수집 활성화:

    system switch ethernet log modify -device <switch-name> -periodic-enabled true
    cluster1::*> system switch ethernet log modify -device cs1 -periodic-enabled true
    
    Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y
    
    cs1: Periodic log collection has been scheduled to run every hour.
    
    cluster1::*> system switch ethernet log modify -device cs2 -periodic-enabled true
    
    Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y
    
    cs2: Periodic log collection has been scheduled to run every hour.
    
    cluster1::*> system switch ethernet log show
                                              Periodic    Periodic    Support
    Switch                                    Log Enabled Log State   Log State
    
    cs1                                       true        scheduled   never-run
    cs2                                       true        scheduled   never-run
    2 entries were displayed.
  2. 지원 로그 수집 요청:

    system switch ethernet log collect-support-log -device <switch-name>
    cluster1::*> system switch ethernet log collect-support-log -device cs1
    
    cs1: Waiting for the next Ethernet switch polling cycle to begin support collection.
    
    cluster1::*> system switch ethernet log collect-support-log -device cs2
    
    cs2: Waiting for the next Ethernet switch polling cycle to begin support collection.
    
    cluster1::*> *system switch ethernet log show
                                              Periodic    Periodic    Support
    Switch                                    Log Enabled Log State   Log State
    
    cs1                                       false       halted      initiated
    cs2                                       true        scheduled   initiated
    2 entries were displayed.
  3. 로그 수집의 모든 세부 정보(활성화, 상태 메시지, 이전 타임스탬프 및 주기적 수집 파일 이름, 요청 상태, 상태 메시지, 지원 수집의 이전 타임스탬프 및 파일 이름 포함)를 보려면 다음을 사용하세요.

    system switch ethernet log show -instance
    cluster1::*> system switch ethernet log show -instance
    
                        Switch Name: cs1
               Periodic Log Enabled: true
                Periodic Log Status: Periodic log collection has been scheduled to run every hour.
        Last Periodic Log Timestamp: 3/11/2024 11:02:59
              Periodic Log Filename: cluster1:/mroot/etc/log/shm-cluster-info.tgz
              Support Log Requested: false
                 Support Log Status: Successfully gathered support logs - see filename for their location.
         Last Support Log Timestamp: 3/11/2024 11:14:20
               Support Log Filename: cluster1:/mroot/etc/log/shm-cluster-log.tgz
    
                        Switch Name: cs2
               Periodic Log Enabled: false
                Periodic Log Status: Periodic collection has been halted.
        Last Periodic Log Timestamp: 3/11/2024 11:05:18
              Periodic Log Filename: cluster1:/mroot/etc/log/shm-cluster-info.tgz
              Support Log Requested: false
                 Support Log Status: Successfully gathered support logs - see filename for their location.
         Last Support Log Timestamp: 3/11/2024 11:18:54
               Support Log Filename: cluster1:/mroot/etc/log/shm-cluster-log.tgz
    2 entries were displayed.
ONTAP 9.14.1 및 이전 버전
  1. 로그 수집을 설정하려면 각 스위치에 대해 다음 명령을 실행합니다. 로그 수집을 위해 스위치 이름, 사용자 이름, 비밀번호를 입력하라는 메시지가 표시됩니다.

    참고: 답변하는 경우 y 사용자 사양 프롬프트에 따라 사용자에게 다음에 설명된 대로 필요한 권한이 있는지 확인하십시오.시작하기 전에 .

    system switch ethernet log setup-password
    cluster1::*> system switch ethernet log setup-password
    Enter the switch name: <return>
    The switch name entered is not recognized.
    Choose from the following list:
    cs1
    cs2
    
    cluster1::*> system switch ethernet log setup-password
    
    Enter the switch name: cs1
    Would you like to specify a user other than admin for log collection? {y|n}: n
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
    
    cluster1::*> system switch ethernet log setup-password
    
    Enter the switch name: cs2
    
    Would you like to specify a user other than admin for log collection? {y|n}: n
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
참고 CL 5.11.1의 경우, 사용자 cumulus*를 생성하고 다음 프롬프트에 *y*로 응답합니다. 로그 수집에 admin이 아닌 다른 사용자를 지정하시겠습니까? {y|n}: *y
  1. 지원 로그 수집을 요청하고 주기적 수집을 활성화하려면 다음 명령을 실행하세요. 이렇게 하면 두 가지 유형의 로그 수집이 시작됩니다. 자세한 내용 Support 로그 및 시간별 수집 Periodic 데이터.

    system switch ethernet log modify -device <switch-name> -log-request true
    cluster1::*> system switch ethernet log modify -device cs1 -log-request true
    
    Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y
    
    Enabling cluster switch log collection.
    
    cluster1::*> system switch ethernet log modify -device cs2 -log-request true
    
    Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y
    
    Enabling cluster switch log collection.

    10분간 기다린 후 로그 수집이 완료되었는지 확인하세요.

    system switch ethernet log show
주의 로그 수집 기능에서 오류 상태가 보고되는 경우(출력에서 확인 가능) system switch ethernet log show ), 보다"로그 수집 문제 해결" 자세한 내용은.
다음은 무엇인가요?

"SNMPv3 구성(선택 사항)".