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: Come utilizzare nsr_render_log per eseguire il rendering .raw file di log

Summary: Come utilizzare nsr_render_log per raccogliere i registri.

This article applies to   This article does not apply to 

Instructions

nsr_render_log Legge i messaggi dal file di log non elaborato di NetWorker, filtra ed esegue il rendering in base alle opzioni della riga di comando e invia l'output a stdout. La lingua predefinita è l'inglese. Se si specifica la configurazione regionale, i messaggi vengono emessi nella lingua specificata e i timestamp vengono formattati con tale lingua. Se non è possibile eseguire il rendering dei messaggi nella lingua locale specificata, il rendering dei messaggi viene eseguito in inglese. 

Il rendering dei file di registro può essere eseguito sullo schermo, inviato a un file e inviato a un file in background.
  • Rendering del file raw sullo schermo:
nsr_render_log raw_filename
  • Eseguire il rendering di un file raw in un file di testo:
nsr_render_log raw_filename > output_filename
  • Eseguire il rendering di un file raw su un testo in background:
nsr_render_log raw_filename > output_filename 2>&1
  • Eseguire il rendering di un file raw da un computer remoto:
nsr_render_log -R hostname raw_filename > output_filename 2>&1
  • Eseguire il rendering di un file raw e visualizzare solo i messaggi del file di log per un dispositivo specifico:
nsr_render_log -F devicename raw_filename > output_filename 2>&1
  • Visualizzare solo i messaggi registrati più di recente:
nsr_render_log -B number raw_filename > output_filename 2>&1
  • Eseguire il rendering dei messaggi da un intervallo di tempo specificato:
nsr_render_log -S "start_timestamp" -E "end_timstamp" raw_filename 1> output_filename 2>&1

Dove:
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.

Esempi:

Eseguire il rendering dell'intero log del daemon in un file.
nsr_render_log daemon.raw > daemon.log
Rendering dei messaggi di registro solo a partire da oggi:
nsr_render_log -S "today" daemon.raw > daemon.log 2>&1
Rendering dei messaggi di registro solo dall'ultima settimana
nsr_render_log -S "1 weeks ago" daemon.raw > daemon.log 2>&1

La logica può essere applicata, utilizzando ore, giorni, settimane e così via.

Visualizzare i messaggi di registro tra due timestamp:

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
Per eseguire il rendering dei messaggi di registro generati dagli ID processo (PID) 41, 1064 e 1065, eliminando l'output di thread e activity/eventID, cercando solo le ultime 50 righe del file di registro e reindirizzando l'output.
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
Visualizzare i messaggi della guida:
nsr_render_log -h
La NetWorker Command Reference Guide fornisce informazioni dettagliate su nsr_render_log programma e le opzioni disponibili. La documentazione di NetWorker è disponibile tramite il supporto 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.