NetWorker:nsr_render_logを使用して.rawログ ファイルをレンダリングする方法
Riepilogo: nsr_render_logを使用してログを収集する方法。
Questo articolo si applica a
Questo articolo non si applica a
Questo articolo non è legato a un prodotto specifico.
Non tutte le versioni del prodotto sono identificate in questo articolo.
Istruzioni
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
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サポートから入手できます。
Informazioni aggiuntive
Prodotti interessati
NetWorker, NetWorker SeriesProdotti
NetWorker Family, NetWorker SeriesProprietà dell'articolo
Numero articolo: 000022793
Tipo di articolo: How To
Ultima modifica: 16 set 2025
Versione: 8
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.