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 käyttäminen lokitiedostojen hahmontamiseen .raw

Summary: Kuinka käyttää nsr_render_log lokien keräämiseen.

This article applies to   This article does not apply to 

Instructions

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.

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.