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
呈現由進程 ID (PID) 41、1064 和 1065 生成的日誌消息,抑制線程和活動/事件 ID 輸出,僅搜索日誌檔的最後 50 行並重定向輸出。
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
顯示說明訊息:
nsr_render_log -h
NetWorker 命令參考指南提供有關 nsr_render_log 程式和可用選項。可透過 Dell 支援取得 NetWorker 說明文件。

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.