NetWorker: nsr_render_log käyttäminen lokitiedostojen hahmontamiseen .raw

摘要: Kuinka käyttää nsr_render_log lokien keräämiseen.

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

说明

nsr_render_log Lukee viestit NetWorkerin raakalokitiedostosta, suodattaa ja hahmontaa ne komentoriviasetusten mukaan sekä lähettää tuloksen stdoutille. Oletuskieli on englanti. Jos aluekohtaiset asetukset on määritetty, viestit tulostetaan määritetyllä kielellä ja aikaleimat muotoillaan kyseisen kielialueen mukaan. Jos viestejä ei voida hahmontaa määritetyllä paikallisella kielellä, viestit renderöidään englanniksi. 

Lokitiedostojen renderöinti voidaan tehdä näytöllä, lähettää tiedostoon ja lähettää taustalla olevaan tiedostoon.
  • Renderöi raakatiedosto näytöllä:
nsr_render_log raw_filename
  • Raakatiedoston hahmontaminen tekstitiedostoksi:
nsr_render_log raw_filename > output_filename
  • Raw-tiedoston hahmontaminen taustalla olevaksi tekstiksi:
nsr_render_log raw_filename > output_filename 2>&1
  • Raw-tiedoston hahmontaminen etäkoneesta:
nsr_render_log -R hostname raw_filename > output_filename 2>&1
  • Hahmonna raakatiedosto ja tarkastele vain tietyn laitteen lokitiedostoviestejä:
nsr_render_log -F devicename raw_filename > output_filename 2>&1
  • Hahmonna vain viimeksi kirjatut viestit:
nsr_render_log -B number raw_filename > output_filename 2>&1
  • Hahmonna viestit tietyltä ajanjaksolta:
nsr_render_log -S "start_timestamp" -E "end_timstamp" raw_filename 1> output_filename 2>&1

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

Esimerkkejä:

Hahmonna koko daemonloki tiedostoksi.
nsr_render_log daemon.raw > daemon.log
Lokiviestien hahmontaminen vain tästä päivästä alkaen:
nsr_render_log -S "today" daemon.raw > daemon.log 2>&1
Hahmonna lokiviestejä vain viime viikon sisältä
nsr_render_log -S "1 weeks ago" daemon.raw > daemon.log 2>&1

Logiikkaa voidaan soveltaa käyttämällä tunteja, päiviä, viikkoja ja niin edelleen.

Lokiviestien hahmontaminen kahden aikaleiman välillä:

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
Prosessitunnusten (PID) 41, 1064 ja 1065 luomien lokiviestien hahmontaminen estämällä säikeen ja aktiviteetin/tapahtumatunnuksen tulosteet, etsimällä vain lokitiedoston 50 viimeistä riviä ja uudelleenohjaamalla tulosteen.
nsr_render_log -ta -P "41 1064 1065" -B -50 recover.raw > recover.txt
Näytä ohjeviestit:
nsr_render_log -h
NetWorker Command Reference Guide -oppaassa on yksityiskohtaisia tietoja nsr_render_log Ohjelma ja käytettävissä olevat vaihtoehdot. NetWorker-dokumentaatio on saatavilla Dell-tuen kautta.

其他信息

受影响的产品

NetWorker, NetWorker Series

产品

NetWorker Family, NetWorker Series
文章属性
文章编号: 000022793
文章类型: How To
上次修改时间: 16 9月 2025
版本:  8
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。