본 제품에 대한 문서 세트는 편견 없는 언어를 사용하기 위해 노력합니다. 본 설명서 세트의 목적상, 편견 없는 언어는 나이, 장애, 성별, 인종 정체성, 민족 정체성, 성적 지향성, 사회 경제적 지위 및 교차성에 기초한 차별을 의미하지 않는 언어로 정의됩니다. 제품 소프트웨어의 사용자 인터페이스에서 하드코딩된 언어, RFP 설명서에 기초한 언어 또는 참조된 서드파티 제품에서 사용하는 언어로 인해 설명서에 예외가 있을 수 있습니다. 시스코에서 어떤 방식으로 포용적인 언어를 사용하고 있는지 자세히 알아보세요.
Cisco는 전 세계 사용자에게 다양한 언어로 지원 콘텐츠를 제공하기 위해 기계 번역 기술과 수작업 번역을 병행하여 이 문서를 번역했습니다. 아무리 품질이 높은 기계 번역이라도 전문 번역가의 번역 결과물만큼 정확하지는 않습니다. Cisco Systems, Inc.는 이 같은 번역에 대해 어떠한 책임도 지지 않으며 항상 원본 영문 문서(링크 제공됨)를 참조할 것을 권장합니다.
이 문서에서는 로그를 보존하기 위해 SCP(Secure Copy Protocol)를 사용하여 외부 서버로 내보낼 DME(Data Management Engine) 로그를 구성하는 방법에 대해 설명합니다.
UCSM(Unified Computing System Manager)은 프로세스에 대한 로그 파일을 /var/sysmgr/sam_logs/에 저장합니다. 이러한 로그는 관리자가 UCSM 기술 지원을 수집하거나 tail-mgmt-log 명령을 사용하여 로컬 관리 범위에서 읽을 수 있습니다.
다음 주제에 대한 지식을 보유하고 있으면 유용합니다.
이 문서의 정보는 다음 소프트웨어 및 하드웨어 버전을 기반으로 합니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 이해해야 합니다.
참고:이러한 컨피그레이션 단계는 Cisco UCS Manager CLI System Monitoring Guide의 Configuring Settings for Faults, Events and Logs(결함, 이벤트 및 로그에 대한 설정 구성) 섹션 > Log File Exporter(로그 파일 내보내기) 섹션에 설명되어 있습니다.모니터링 가이드 전체를 읽는 것이 좋습니다.
1단계. 현재 로그 내보내기 정책의 검사부터 시작합니다.
ucs-04-B# scope monitoring ucs-04-B /monitoring # scope sysdebug ucs-04-B /monitoring/sysdebug # scope log-export-policy ucs-04-B /monitoring/sysdebug/log-export-policy # show Log Export Policy: Remote server: admin state: Disabled Use Passwordless Ssh: Yes
2단계. 수정할 수 있는 설정을 봅니다.
ucs-04-B /monitoring/sysdebug/log-export-policy # set admin-state admin state descr Description hostname Remote server passwd password passwordless-ssh Use Passwordless Ssh path remote path proto protocol user remote user
3단계. 외부 서버를 구성합니다.
ucs-04-B /monitoring/sysdebug/log-export-policy # set hostname 192.168.0.100 ucs-04-B /monitoring/sysdebug/log-export-policy* # set user ucs ucs-04-B /monitoring/sysdebug/log-export-policy* # set passwd password: ucs-04-B /monitoring/sysdebug/log-export-policy* # set path /var/log/ ucs-04-B /monitoring/sysdebug/log-export-policy* # set admin-state enabled ucs-04-B /monitoring/sysdebug/log-export-policy* # set proto scp ucs-04-B /monitoring/sysdebug/log-export-policy* # set passwordless-ssh yes ucs-04-B /monitoring/sysdebug/log-export-policy* # commit-buffer ucs-04-B /monitoring/sysdebug/log-export-policy #
관리자가 특정 로깅 모듈에 대한 로깅 레벨을 늘려야 할 수 있습니다.이 명령은 구성할 수 있는 모듈을 보여줍니다.
ucs-04-B # scope monitoring ucs-04-B /monitoring # scope sysdebug ucs-04-B /monitoring/sysdebug # scope mgmt-logging ucs-04-B /monitoring/sysdebug/mgmt-logging # reset Reset mgmt logging levels save Save mgmt logging parameters set Set mgmt logging property values show Show system information ucs-04-B /monitoring/sysdebug/mgmt-logging # show Log File Size Limit: 5242880 Name Level Default Level --------------------- ------ ------------- adaptor Info Info agdriver Info Info ape Info Info app_hostag_agcore Info Info app_sam_bladeAG Info Info app_sam_cim Info Info app_sam_controller Info Info app_sam_dcosAG Info Info app_sam_dme Info Info app_sam_hostagentAG Info Info app_sam_licenseAG Info Info app_sam_nicAG Info Info app_sam_portAG Info Info app_sam_rsdAG Info Info app_sam_serverAG Info Info app_sam_snmp Info Info app_sam_statsAG Info Info app_sam_svcmonAG Info Info app_sam_switchAG Info Info app_synagent_fileAG Info Info app_unittest_testsvc Info Info auth Info Info autocond Info Info bio_stream Info Info bios Info Info callhome Info Info catalog Info Info char_stream Info Info compute Info Info core_transactor Info Info core_utils Info Info diag Info Info doer Info Info domain Info Info equipment Info Info ether Info Info event_ Info Info event_channel Info Info exception_handling Info Info fabric Info Info fault Info Info fcpool Info Info filter Info Info fsm Info Info http_client Info Info ippool Info Info iptfwconfig Info Info locator Info Info
여기서 명령은 관리자가 app_sam_dme의 로깅 레벨, DME 로깅 모듈을 수정하는 방법을 보여줍니다.
ucs-04-B /monitoring/sysdebug/mgmt-logging # set all All mgmt logging modules file Mgmt logging file parameters module Specific mgmt logging module
ucs-04-B /monitoring/sysdebug/mgmt-logging # set module app_sam_dme crit Crit debug0 Debug0 debug1 Debug1 debug2 Debug2 debug3 Debug3 debug4 Debug4 info Info major Major minor Minor warn Warn
ucs-04-B /monitoring/sysdebug/mgmt-logging # set module app_sam_dme debug4 ucs-04-B /monitoring/sysdebug/mgmt-logging # show Log File Size Limit: 5242880 Name Level Default Level --------------------- ------ ------------- adaptor Info Info agdriver Info Info ape Info Info app_hostag_agcore Info Info app_sam_bladeAG Info Info app_sam_cim Info Info app_sam_controller Info Info app_sam_dcosAG Info Info app_sam_dme Info Debug4 app_sam_hostagentAG Info Info app_sam_licenseAG Info Info app_sam_nicAG Info Info app_sam_portAG Info Info app_sam_rsdAG Info Info app_sam_serverAG Info Info app_sam_snmp Info Info app_sam_statsAG Info Info app_sam_svcmonAG Info Info app_sam_switchAG Info Info app_synagent_fileAG Info Info app_unittest_testsvc Info Info auth Info Info autocond Info Info bio_stream Info Info bios Info Info callhome Info Info catalog Info Info char_stream Info Info compute Info Info core_transactor Info Info core_utils Info Info diag Info Info doer Info Info domain Info Info equipment Info Info ether Info Info event_ Info Info event_channel Info Info exception_handling Info Info fabric Info Info fault Info Info fcpool Info Info filter Info Info fsm Info Info http_client Info Info ippool Info Info iptfwconfig Info Info locator Info Info
로깅 레벨이 증가하면 로깅된 메시지 수가 증가합니다. 대부분의 경우 Cisco TAC(Technical Assistance Center)에서 요청한 경우에만 수정해야 합니다.
이 섹션을 사용하여 컨피그레이션이 제대로 작동하는지 확인합니다.
여기에 표시된 것처럼 syslog 서버에는 UCS 도메인에서 내보낸 여러 .tgz 파일이 포함되어 있습니다.
[admin@localhost /var/log]# ls -la logs.ucs-04-B* | tail -n 5 -rw-r--r--. 1 root root 476911 Dec 8 09:10 logs.ucs-04-B.151208141033.tgz -rw-r--r--. 1 root root 276423 Dec 8 09:29 logs.ucs-04-B.151208142904.tgz -rw-r--r--. 1 root root 456043 Dec 8 09:33 logs.ucs-04-B.151208143342.tgz -rw-r--r--. 1 root root 480427 Dec 8 09:57 logs.ucs-04-B.151208145722.tgz -rw-r--r--. 1 root root 119322 Dec 8 10:04 logs.ucs-04-B.151208150403.tgz
이 중 하나를 예로 추출하면 svc_sam_dme.log.6.gz 파일이 포함되어 있습니다. 이 컨피그레이션이 없는 경우 UCS는 새 로그 메시지를 저장하기 위해 삭제해야 합니다.
[admin@localhost /var/log]# tar -vxzf logs.ucs-04-B.151208145722.tgz bootflash/sysdebug/log_export/ucs-04-B/151208145722/ bootflash/sysdebug/log_export/ucs-04-B/151208145722/svc_sam_dme.log.6.gz
현재 이 컨피그레이션에 사용할 수 있는 특정 문제 해결 정보가 없습니다.