이더넷 스위치 상태 모니터링을 위한 로그 수집 구성
이더넷 스위치 상태 모니터링(CSHM)이 디버깅 및 AutoSupport 보고를 위해 스위치 로그를 수집할 수 있도록 이더넷 스위치에서 로그 수집을 구성하십시오. 이 절차는 ONTAP에서 온디맨드 지원 로그 수집과 시간별 주기적 데이터 수집을 모두 설정합니다.
-
FIPS 모드를 사용하는 경우 로그 수집을 설정하기 전에 다음 단계를 완료하십시오.
-
공급업체의 지침을 사용하여 스위치에서 SSH 키를 다시 생성합니다.
-
ONTAP에서 `debug system regenerate-systemshell-key-pair`을(를) 사용하여 SSH 키를 재생성합니다.
-
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 버전에 따라 단계를 따라 로그 수집을 설정하고, 주기적인 데이터 수집을 활성화하고, 필요에 따라 온디맨드 지원 로그를 요청하십시오.
-
로그 수집을 설정하려면 각 스위치에 대해 다음 명령을 실행합니다. 로그 수집을 위해 스위치 이름, 사용자 이름, 비밀번호를 입력하라는 메시지가 표시됩니다.
참고: 사용자 지정 프롬프트에 *y*로 응답하는 경우 사용자에게 다음에 설명된 대로 필요한 권한이 있는지 확인하십시오.[시작하기 전에] .
system switch ethernet log setup-passwordcluster1::*> 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 |
-
system switch ethernet log modify -device <switch-name> -periodic-enabled truecluster1::*> 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. -
지원 로그 수집 요청:
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. -
로그 수집의 모든 세부 정보(활성화, 상태 메시지, 이전 타임스탬프 및 주기적 수집 파일 이름, 요청 상태, 상태 메시지, 지원 수집의 이전 타임스탬프 및 파일 이름 포함)를 보려면 다음을 사용하세요.
system switch ethernet log show -instancecluster1::*> 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.
-
로그 수집을 설정하려면 각 스위치에 대해 다음 명령을 실행합니다. 로그 수집을 위해 스위치 이름, 사용자 이름, 비밀번호를 입력하라는 메시지가 표시됩니다.
참고: 답변하는 경우
y사용자 사양 프롬프트에 따라 사용자에게 다음에 설명된 대로 필요한 권한이 있는지 확인하십시오.[시작하기 전에] .system switch ethernet log setup-passwordcluster1::*> 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 |
-
지원 로그 수집을 요청하고 주기적 수집을 활성화하려면 다음 명령을 실행하세요. 이렇게 하면 두 가지 유형의 로그 수집이 시작됩니다. 자세한 내용
Support로그 및 시간별 수집Periodic데이터.system switch ethernet log modify -device <switch-name> -log-request truecluster1::*> 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`의 출력에 표시됨) 자세한 내용은 "로그 수집 문제 해결"을(를) 참조하십시오. |