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: Cómo usar nsr_render_log para representar .raw archivos de registro

Summary: Cómo usar nsr_render_log para recopilar registros.

This article applies to   This article does not apply to 

Instructions

nsr_render_log Lee mensajes del archivo de registro sin procesar de NetWorker, los filtra y los representa de acuerdo con las opciones de la línea de comandos, y envía la salida a stdout. El idioma predeterminado es el inglés. Si se especifica una configuración regional, los mensajes se generan en el idioma especificado y los registros de fecha y hora se formatean para esa configuración regional. Si los mensajes no se pueden representar en el idioma local especificado, los mensajes se representan en inglés. 

La representación de archivos de registro se puede realizar en la pantalla, enviar a un archivo y enviar a un archivo en segundo plano.
  • Renderizar archivo RAW en pantalla:
nsr_render_log raw_filename
  • Representar un archivo sin formato en un archivo de texto:
nsr_render_log raw_filename > output_filename
  • Renderizar un archivo RAW en un texto en segundo plano:
nsr_render_log raw_filename > output_filename 2>&1
  • Renderizar un archivo sin procesar desde una máquina remota:
nsr_render_log -R hostname raw_filename > output_filename 2>&1
  • Representar un archivo sin procesar y ver solo mensajes de archivos de registro para un dispositivo específico:
nsr_render_log -F devicename raw_filename > output_filename 2>&1
  • Representar solo los mensajes registrados más recientemente:
nsr_render_log -B number raw_filename > output_filename 2>&1
  • Representar mensajes de un rango de tiempo especificado:
nsr_render_log -S "start_timestamp" -E "end_timstamp" raw_filename 1> output_filename 2>&1

Dónde:
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.

Ejemplos:

Genere todo el registro del demonio en un archivo.
nsr_render_log daemon.raw > daemon.log
Generar mensajes de registro de hoy solamente:
nsr_render_log -S "today" daemon.raw > daemon.log 2>&1
Generación de mensajes de registro de la semana pasada solamente
nsr_render_log -S "1 weeks ago" daemon.raw > daemon.log 2>&1

La lógica se puede aplicar mediante horas, días, semanas, etc.

Generar mensajes de registro entre dos registros de fecha y hora:

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
Para representar los mensajes de registro generados por los ID de proceso (PID) 41, 1064 y 1065, se suprime el subproceso y la salida de activity/eventID, se buscan solo las últimas 50 líneas del archivo de registro y se redirecciona la salida.
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
Mostrar mensajes de ayuda:
nsr_render_log -h
En la Guía de referencia de comandos de NetWorker , se proporciona información detallada sobre nsr_render_log programa y las opciones disponibles. La documentación de NetWorker está disponible a través del soporte de 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.