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

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

Tento článok sa vzťahuje na Tento článok sa nevzťahuje na Tento článok nie je viazaný na žiadny konkrétny produkt. V tomto článku nie sú uvedené všetky verzie produktov.

Pokyny

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.

Ďalšie informácie

Dotknuté produkty

NetWorker, NetWorker Series

Produkty

NetWorker Family, NetWorker Series
Vlastnosti článku
Číslo článku: 000022793
Typ článku: How To
Dátum poslednej úpravy: 16 sep 2025
Verzia:  8
Nájdite odpovede na svoje otázky od ostatných používateľov spoločnosti Dell
Služby podpory
Skontrolujte, či sa na vaše zariadenie vzťahujú služby podpory.