Cov txheej txheem:

Yuav ua li cas yog tias koj configure logging cuab debug hais kom ua ntawm ib tug router?
Yuav ua li cas yog tias koj configure logging cuab debug hais kom ua ntawm ib tug router?

Video: Yuav ua li cas yog tias koj configure logging cuab debug hais kom ua ntawm ib tug router?

Video: Yuav ua li cas yog tias koj configure logging cuab debug hais kom ua ntawm ib tug router?
Video: Обзор сигналов карманных опций ✊ Бесплатные бинарны... 2024, Hlis ntuj nqeg
Anonim

Piv txwv li, lub log cuab ceeb toom lus txib configures cov router rau xa tag nrho cov lus nrog cov lus ceeb toom hnyav, yuam kev, tseem ceeb, thiab xwm txheej ceev. Ib yam li ntawd, cov logging trap debug hais kom ua ua rau cov router rau xa tag nrho cov lus rau lub syslog server. Siv ceev faj thaum ua kom lub debug qib.

Ib yam li ntawd, qhov tsis muaj logging console hais kom ua dab tsi?

A) Console kaw : Lub router ua tsis xyuas yog tias tus neeg siv nkag rau hauv lub console chaw nres nkoj lossis ib lub cuab yeej txuas rau nws; yog console nkag yog enabled, cov lus yeej ib txwm xa mus rau lub lub console chaw nres nkoj uas tuaj yeem ua rau CPU load. Txhawm rau nres console nkag , siv cov " tsis muaj log console "world configuration lus txib.

Tsis tas li ntawd, theem twg ntawm kev nkag mus rau lub console yog lub neej ntawd rau Cisco ntaus ntawv? Cov theem pib rau lub console , saib, thiab syslog yog debugging. Cov kaw lus on command yog ua ntej . Txhawm rau kaw tag nrho kaw lus , siv no kaw lus ntawm txib. Los ntawm ua ntej , cov router logs dab tsi ntawm qib ntawm debugging thiab ntau dua.

Ib yam li ib tug yuav nug, Kuv yuav ua li cas thiaj li nres Cisco console logging?

Rau lov tes taw kaw mus rau lub console , siv no log log console hais kom ua nyob rau hauv lub ntiaj teb no configuration hom.

Kuv yuav qhib syslog li cas?

Enabling syslog

  1. Ntxiv rau Syslog_fac. * /var/log/filename hais kom mus rau qhov kawg ntawm syslog.
  2. Txhawm rau qhib syslog. conf file, khiav vi /etc/syslog.
  3. Hloov tus nqi ntawm SYSLOGD_OPTIONS parameter rau tus nqi hauv qab no: SYSLOGD_OPTIONS = "-m 0 -r"
  4. Txhawm rau rov pib lub syslog server, khiav qhov kev pabcuam syslog restart hais kom ua.

Pom zoo: