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
nsr_render_log -S "today" daemon.raw > daemon.log 2>&1
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>&1Prosessitunnusten (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
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。