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

MetroCluster IP 스위치에서 로그 수집 구성

기여자 netapp-aoife

MetroCluster IP 구성에서는 디버깅 목적으로 스위치 로그를 수집하도록 로그 수집을 구성할 수 있습니다.

주의 Broadcom 및 Cisco 스위치에서는 로그 수집을 위해 각 클러스터에 대해 새로운 사용자가 필요합니다. 예를 들어, MetroCluster 1, MetroCluster 2, MetroCluster 3, MetroCluster 4는 모두 스위치에 별도의 사용자를 구성해야 합니다. 동일한 사용자에 대해 여러 개의 SSH 키를 사용하는 것은 지원되지 않습니다.
시작하기 전에
  • FIPS 모드를 사용하는 경우 로그 수집을 설정하기 전에 다음 단계를 완료하십시오.

    1. 공급업체의 지침에 따라 스위치에서 SSH 키를 다시 생성합니다.

    2. ONTAP에서 `debug system regenerate-systemshell-key-pair`을(를) 사용하여 SSH 키를 재생성합니다.

    3. system switch ethernet log setup-password 명령을 사용하여 로그 수집 설정을 다시 실행하십시오.

  • 스위치 show 명령에 접근할 수 있어야 합니다. 접근 권한이 없다면 새 스위치 사용자를 생성하고 필요한 권한을 부여하십시오.

  • 스위치에 대해 스위치 상태 모니터링이 활성화되어 있어야 합니다. Is Monitored: 필드가 system switch ethernet show 출력에서 *true*로 설정되어 있는지 확인하십시오.

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

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

    • 로그 수집이 활성화된 각 클러스터에 대해 새 스위치 사용자를 생성하십시오. 이러한 스위치는 동일한 사용자에 대해 여러 개의 SSH 키를 지원하지 않으므로, 설정을 다시 실행하면 기존 SSH 키가 덮어쓰여집니다.

  • NVIDIA 스위치를 사용한 지원 로그 수집을 위해서는 로그 수집 사용자가 암호 없이 cl-support 명령을 실행할 수 있어야 합니다. 이를 허용하려면 다음을 실행하십시오.

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

단계

사용 중인 ONTAP 버전에 따라 단계를 따라 로그 수집을 설정하고, 주기적인 데이터 수집을 활성화하고, 필요에 따라 온디맨드 지원 로그를 요청하십시오.

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) 자세한 내용은 을 참조하십시오. "로그 수집 문제를 해결합니다"