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のrawログ ファイルからメッセージを読み取り、フィルタリングして表示し、出力をstdoutに送信します。デフォルトの言語は英語です。ロケールが指定されている場合、メッセージは指定された言語で出力され、タイム・スタンプはそのロケールにフォーマットされます。指定されたローカル言語でメッセージをレンダリングできない場合、メッセージは英語でレンダリングされます。

ログファイルのレンダリングは、画面上で実行され、ファイルに送信し、バックグラウンドでファイルに送信します。
  • RAWファイルを画面にレンダリングします。
nsr_render_log raw_filename
  • RAWファイルをテキストファイルにレンダリングする:
nsr_render_log raw_filename > output_filename
  • RAWファイルをバックグラウンドでテキストにレンダリングします。
nsr_render_log raw_filename > output_filename 2>&1
  • リモートマシンからRAWファイルをレンダリングします。
nsr_render_log -R hostname raw_filename > output_filename 2>&1
  • RAWファイルをレンダリングし、特定のデバイスのログ ファイル メッセージのみを表示します。
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
過去1週間のログ メッセージのみをレンダリングします
nsr_render_log -S "1 weeks ago" daemon.raw > daemon.log 2>&1

ロジックは、時間、日、週などを使用して適用できます。

2つのタイムスタンプの間のログ メッセージをレンダリングします。

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
プロセス ID (PID) 41、1064、1065 によって生成されたログ メッセージをレンダリングし、スレッドとアクティビティ/eventID の出力を抑制し、ログ ファイルの最後の 50 行のみを検索して出力をリダイレクトします。
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
ヘルプ メッセージを表示します。
nsr_render_log -h
NetWorkerコマンド リファレンス ガイドには、 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.