Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

NetWorker: nsr_render_log 사용하여 .raw 로그 파일을 렌더링하는 방법

Summary: nsr_render_log 사용하여 로그를 수집하는 방법

This article applies to   This article does not apply to 

Instructions

nsr_render_log 명령줄 옵션에 따라 NetWorker 원시 로그 파일에서 메시지를 읽고 필터링 및 렌더링한 다음 출력을 stdout으로 보냅니다. 기본 언어는 영어입니다. 로캘이 지정된 경우 메시지는 지정된 언어로 출력되고 시간소인은 해당 로캘에 맞게 형식화됩니다. 메시지를 지정된 현지 언어로 렌더링할 수 없는 경우 메시지는 영어로 렌더링됩니다. 

로그 파일 렌더링 지팡이는 화면에서 수행하고, 파일로 보내고, 백그라운드에서 파일로 보냅니다.
  • 화면에 원시 파일 렌더링:
nsr_render_log raw_filename
  • 원시 파일을 텍스트 파일로 렌더링:
nsr_render_log raw_filename > output_filename
  • 원시 파일을 백그라운드에서 텍스트로 렌더링:
nsr_render_log raw_filename > output_filename 2>&1
  • 원격 컴퓨터에서 원시 파일 렌더링:
nsr_render_log -R hostname raw_filename > output_filename 2>&1
  • 원시 파일을 렌더링하고 특정 장치에 대한 로그 파일 메시지만 봅니다.
nsr_render_log -F devicename raw_filename > output_filename 2>&1
  • 가장 최근에 기록된 메시지만 렌더링합니다.
nsr_render_log -B number raw_filename > output_filename 2>&1
  • 지정된 시간 범위의 메시지를 렌더링합니다.
nsr_render_log -S "start_timestamp" -E "end_timstamp" raw_filename 1> output_filename 2>&1

여기서:
raw_filename is the name of the unrendered file. For example, daemon.raw

output_filename is the name of the file to direct the output to.

hostname is the name of the host that contains the .raw file.

devicename is the name of the device
number Output only messages starting with this line number. If the given start_line value is negative, then it lines from the end of the file.

-h suppresses the hostname.

-y suppresses the message severity.

예:

전체 데몬 로그를 파일로 렌더링합니다.
nsr_render_log daemon.raw > daemon.log
오늘부터 로그 메시지를 렌더링합니다.
nsr_render_log -S "today" daemon.raw > daemon.log 2>&1
지난주 내의 로그 메시지 렌더링
nsr_render_log -S "1 weeks ago" daemon.raw > daemon.log 2>&1

논리는 시간, 일, 주 등을 사용하여 적용할 수 있습니다.

두 타임스탬프 사이에 로그 메시지를 렌더링합니다.

nsr_render_log -S "08/13/2024 09:00:00 AM" -E "08/13/2024 10:00:00 AM" daemon.raw > daemon.log 2>&1
PID(프로세스 ID) 41, 1064 및 1065에 의해 생성된 로그 메시지를 렌더링하여 스레드 및 활동/eventID 출력을 표시하지 않고 로그 파일의 마지막 50줄만 검색하고 출력을 리디렉션합니다.
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
도움말 메시지를 표시합니다.
nsr_render_log -h
NetWorker Command Reference Guide에 자세한 내용은 nsr_render_log 프로그램 및 사용 가능한 옵션. NetWorker 설명서는 Dell 지원을 통해 제공됩니다.

Additional Information

Affected Products

NetWorker, NetWorker Series

Products

NetWorker Family, NetWorker Series
Article Properties
Article Number: 000022793
Article Type: How To
Last Modified: 21 Sep 2024
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.