huawei network ekipmanlarında loglar yapılan konfigürasyon ayarlarına göre belirli bir tarihten veya log sayısından fazlası router üzerindeki hafıza ortamlarında tutulabilmektedir. nms üzerinde geçmişe ait log kaydı tutmuyorsanız ve/veya router üzerinde log analizi yapmak isterseniz işinize yarayacaktır.kısaca gerekli incelemelerin nasıl yapılacağına bakalım.
“display logfile-path” komutu ile log dosyalarının nerede tutulduğunu öğrenebiliriz.
<fcicek_huawei_test_router>display logfile-path
Info: Current log file path is "cfcard2:/log".
dosya konumu ögrenildikten sonra ilgili alan / dizine geçiş için cd komutunu kullanıyoruz.
<fcicek_huawei_test_router>cd cfcard2:/log
dizin içinde dosları inceleyelim.
<fcicek_huawei_test_router>dir
Directory of cfcard2:/log/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 1,114,505 Apr 21 2016 08:58:50 log.log
1 -rw- 645,924 Apr 21 2016 08:58:50 log.dblg
2 -rw- 262,144 Aug 02 2013 00:49:44 logfilebuf.dat
3 -rw- 1,508 May 30 2014 07:29:40 scene.dblg.zip
4 -rw- 1,094,989 Feb 06 2016 01:11:28 2016-02-06.01-11-08.dblg.zip
5 -rw- 626,757 Feb 12 2016 14:29:06 2016-02-12.14-28-51.log.zip
6 -rw- 999,237 Mar 11 2016 01:11:18 2016-03-11.01-11-00.dblg.zip
7 -rw- 967,042 Feb 17 2016 06:29:10 2016-02-17.06-28-51.dblg.zip
8 -rw- 978,353 Feb 28 2016 04:29:10 2016-02-28.04-28-51.dblg.zip
9 -rw- 685,204 Mar 04 2016 12:59:08 2016-03-04.12-58-51.log.zip
10 -rw- 991,856 Mar 22 2016 01:11:30 2016-03-22.01-11-09.dblg.zip
11 -rw- 8,412,776 Apr 21 2016 08:51:28 2016-04-21.05-01-15-dst.35.logtmp
12 -rw- 960,961 Apr 02 2016 01:29:12 2016-04-02.01-28-51-dst.dblg.zip
13 -rw- 978,646 Apr 14 2016 01:11:20 2016-04-14.01-10-59-dst.dblg.zip
14 -rw- 1,097,927 Apr 21 2016 04:58:20 2016-04-21.04-57-57-dst.dblg.zip
15 -rw- 637,749 Apr 21 2016 05:01:30 2016-04-21.05-01-15-dst.log.zip
16 -rw- 8,393,002 Apr 21 2016 09:07:40 2015-11-05.19-58-51.34.logtmp
17 -rw- 1,138,966 Feb 28 2014 18:11:54 2014-02-28.18-11-31.dblg.zip
18 -rw- 449,312 Mar 01 2014 08:52:08 2014-03-01.08-51-55.log.zip
19 -rw- 1,040,497 Mar 13 2014 08:23:24 2014-03-13.08-23-03.dblg.zip
20 -rw- 1,068,521 Mar 25 2014 18:11:50 2014-03-25.18-11-30.dblg.zip
1,999,616 KB total (1,874,240 KB free)
geçmişe dönük arşivlenmiş logları görmek için “display logfile” komutu kullanılacaktır. yalnız burada dikkat edilmesi gereken noktada dosyanın tam yolunu yazmak gerektiği. bu farklı yazılımlarda değişebilir.
<fcicek_huawei_test_router>display logfile cfcard2:/log/2016-02-12.14-28-51.log.zip
Info: It may take several seconds, please wait ...
100% complete
################################################################
# This logfile is generated at slot 9
################################################################
################################################################
#Automatic record log end,current health information as follows:
Slot CPU Usage Memory Usage (Used/Total)
---------------------------------------------------------------
9 MPU(System Master) 9% 31% 571MB/1806MB
1 LPU 18% 46% 384MB/825MB
2 LPU 18% 45% 378MB/825MB
3 LPU 19% 46% 386MB/825MB
10 MPU 5% 26% 473MB/1806MB
#DateTime Stamp: 2016-01-26 16:58:51.980
################################################################
Jan 26 2016 17:00:14+02:00 fcicek_huawei_test_router LSPM/1/LDPVTUNNEL_DOWN:OID 1.3.6.1.4.1.2011.5.25.182.1.54.2 LDP virtual tunnel went Down. (VirtualTunnelIndex=3567058411)
Jan 26 2016 17:00:14+02:00 fcicek_huawei_test_router LSPM/1/LDPVTUNNEL_DOWN:OID 1.3.6.1.4.1.2011.5.25.182.1.54.2 LDP virtual tunnel went Down. (VirtualTunnelIndex=3567058317)