huawei network ekipmanlarında arşivlenmiş log dosyası
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)
huawei network ekipmanlarında qos-profile uygulanmış interface listesi
huawei network ekipmanlarında qos-profile yapısını kullanıyorsanız tanımlı bir profile in hangi interfacelerde tanımlı olduğunu öğrenmek isterseniz aşagıdaki örnekteki komut yapısını kullanabilirsiniz.
[testrouter_fc]display qos-profile application qos-inbound-profile
qos-profile qos-inbound-profile:
GigabitEthernet1/1/3.221
GigabitEthernet1/1/3.222
GigabitEthernet1/1/3.223
GigabitEthernet1/1/3.224
GigabitEthernet1/1/3.225
Reference number by access user: [inbound] 0, [outbound] 0
huawei network ekipmanlarında qinq yapılandırılmış sub-interface
huawei routerların sub interface mantığından dolayı interface altında yapılmış sub interfacelerdeki kullanılan pe-vid ce-vid değerlerini öğrenmenin ne yazakkı basit ve güzel bir yöntemi yok… yaa mevcut konfiürasyona bakacaksınız yada “display qinq information termination” komutunu kullanacaksınız. bu komutun örnek çıktısı aşagıdaki yer almaktadır. .
<test_router>display qinq information termination
Eth-Trunk1.62
L3VPN bound
Total QinQ Num: 1
qinq termination pe-vid 102 ce-vid 62 vlan-group 1
Total vlan-group Num: 1
vlan-group 1
control-vid 62 qinq-termination
Eth-Trunk1.113
VLL/PWE3 bound
Total QinQ Num: 1
qinq termination pe-vid 102 ce-vid 113 vlan-group 1
Total vlan-group Num: 1
vlan-group 1
control-vid 113 qinq-termination
Eth-Trunk5.56
Total QinQ Num: 1
qinq termination pe-vid 42 ce-vid 56 vlan-group 1
Total vlan-group Num: 1
vlan-group 1
control-vid 56 qinq-termination
Eth-Trunk5.69
VLL/PWE3 bound
Total QinQ Num: 1
qinq termination pe-vid 62 ce-vid 69 vlan-group 1
Total vlan-group Num: 1
vlan-group 1
control-vid 69 qinq-termination
huawei network ekipmanları için ekran uzunluğu / sayfalama
ssh veya telnet ile bir network ekipmanına bağlanıp koşturduğunuz komutun çıktısını nakmak istiyorsanız sayfalama oldukça faydalı olmaktadır. “display current-configuration” komutunu çalıştırdığımızda
<fcicek_router>display current-configuration
!Software Version V200R011C10SPC600
#
sysname fcicek_router
#
info-center loghost source Vlanif100
info-center loghost 10.10.10.199
#
vlan batch 2 to 4094
#
loopback-detect auto disable
loopback-detect packet-interval 10
#
stp timer hello 100
stp timer forward-delay 400
stp timer max-age 600
stp timer-factor 1
stp enable
stp converge fast
#
undo authentication unified-mode
#
domain fcicek admin
#
igmp-snooping enable
---- More ----
şeklinde bir durumla karşılaşırız.. konfigürasyonun devamını görmek için boşluk tuşuna basmak gerekmektedir. huawei network ekipmanlarında varsayılan sayfalama / ekran uzunluğu değeri 24 dir. bu değeri 0 – 512 arasında değiştirilebilmektedir.
herhanngi bir komutun çıktısını bir yazılım içinde yapıyorsanız, yazılım içinde sayfa sonlarının kontrolünün yapılması ihtiyacını doğurur. huawei ekipmanlarında bu kontrolü “—- More —-” olarak yapılması gerekiyor.
Bu kontrolü yapmak istemiyorsanız network ekipmanına bağlandıktan sonra ilk çalıştırılması gereken komutlardan bir tanesi; sayfalama özelliğini kapatmak olacaktır. Bunun için
screen-length 0 temporary
komutunu çalıştırmanız yeterli olacaktır. kullanıcıların / oturumların varsayılan değerler dışında bir değer kullanmak istiyorsanız user-interface altında değişiklik ile gerçekleştirebilirsiniz.
[fcicek_router]user-interface vty 0 4
[fcicek_router-ui-vty0-4]screen-length 0
huawei network ekipmanlarında lisans dosyaları
huawei cihazlarda lisanslama sırasında bir tane xml ve bir tane dat dosyası kullanılmakta.. bu dosya örnekleri ve içerisinde yer alan börümlere ait açıklamalar aşağıdaki tablolarda yer almaktadır
örnek xml lisans dosyası

Module | Parameter | Mandatory | Description |
---|---|---|---|
LicFile | formatVersion | Yes | Version of the license file format. The format version of each XML license file is 3.00 or later. |
GeneralInfo | CopyRight | Yes | Copyright information. |
LSN | Yes | The license serial number is also known as the Fulfillment ID, and is the unique identifier of a license file. You can search for a license file on license management pages of the ESDP website. To check the LSN, run the display license command. | |
LicType | Yes | COMM indicates a permanent commercial license that has been purchased. DEMO indicates a non-permanent-commercial license. | |
GraceDay | Yes | Number of days in the grace period after the license file expires. The value is fixed at 60. | |
Creator | Yes | Publisher information. This parameter has a fixed value of Huawei Technologies Co., Ltd.. | |
Issuer | Yes | Name of the user who generated the license file in the license distribution system. For a commercial license file, the value is fixed at License Distribution Center. For a non-commercial license file, the value is the applicant information. | |
CreateTime | Yes | Time when the license file was created, and is the local system time of the license distribution system, rather than the system time of the NE that uses the license. | |
CustomerInfo | Customer | No | Customer name. |
Country | No | Country name. | |
Office | No | City name. | |
NodeInfo | Node | Yes | Device ID. |
Des | No | Device description. | |
LockModel | No | Lock mode. NODELOCK indicates single node lock mode, and DUALLOCK indicates dual node lock mode. By default, the single node lock mode is used. | |
ESN | Yes | Electronic serial number of a device, also called device fingerprint. It is a string of characters that uniquely identifies a device and ensures that a license is authorized to the device. | |
SaleInfo | OfferingProduct | Yes | Product name and version. |
SaleItem | Yes | Sales item code. | |
Value | Yes | Sales volume. | |
DesChs | No | Description of the sales item, in Chinese. | |
DesEng | No | Description of the sales item, in English. | |
CapacityKey | No | Resource control service license item. Value indicates the number of authorized resources. validDate indicates the authorization expiration date. If the date is PERMANENT or left blank, the authorization is permanent. | |
FeatureKey | No | Function control service license item. The Value is fixed at 1. validDate indicates the authorization expiration date. If the date is PERMANENT or left blank, the authorization is permanent. | |
KeyInfo | productName | Yes | Product name and version. |
CapacityKey | No | Resource control service license item. name indicates the sales item name; group indicates the sales item type; Value indicates the number of authorized resources; validDate indicates the authorization expiration date. If the date is PERMANENT or left blank, the authorization is permanent. | |
FeatureKey | No | Function control service license item. name indicates the sales item name. group indicates the sales item type. The Value is fixed at 1. validDate indicates the authorization expiration date. If the date is PERMANENT or left blank, the authorization is permanent. | |
Footer | CommonSign | Yes | Signature. |
ProductSign | Yes | method indicates the encryption algorithm. Currently, the 1-RSA1024, 2-RSA2048, 3-ECC163, and 4-ECC233 encryption algorithms are supported. |
dat lisans dosyası

Parameter | Mandatory | Description |
---|---|---|
LicenseSerialNo | Yes | The license serial number is also known as the Fulfillment ID, and is the unique identifier of a license file. You can search for a license file on license management pages of the ESDP website. To check the LSN, run the display license command. |
Creator | Yes | Publisher information. This parameter has a fixed value of Huawei Technologies Co., Ltd.. |
CreatedTime | Yes | Time when the license file was created. The time is the local system time of the license distribution system, rather than the system time of the NE that uses the license. |
Country | Yes | Country name. |
Custom | Yes | Customer name. |
Office | Yes | Region name or user ID in a contract. |
Sign | Yes | Signature. |
Product | Yes | Product name. |
Feature | Yes | License item type. |
Esn | Yes | Electronic serial number of a device, also called device fingerprint. The ESN is a string of characters that uniquely identifies a device and ensures that a license is authorized to the device. If there are multiple ESNs, the license file can be allocated to multiple devices. |
Attrib | Yes | Six fields separated by commas from left to right: In the first field, COMM indicates a permanent commercial license that has been purchased. DEMO indicates a non-permanent-commercial license.The second field indicates the authorization expiration date. PERMANENT indicates that the authorization is permanent. NULL indicates that the parameter is invalid.The third field indicates the number of days in the grace period after the license file expires. NULL indicates that the parameter is invalid.The fourth field indicates the software maintenance expiration date. NULL indicates that the parameter is invalid.The fifth field indicates the hardware maintenance expiration date. NULL indicates that the parameter is invalid.The sixth field indicates the expiration date of free software upgrades. NULL indicates that the parameter is invalid. |
Version | Yes | Product version. |
Libver | No | Version of the license file format. |
Resource | No | Resource control service license item. The value following the equal sign (=) in each license item indicates the number of authorized resources. |
Function | No | Function control service license item. The value following the equal sign (=) in each license item is fixed at 1. |
Comment | No | Comment information, such as the project name, order, and contract. |
nokia / alcatel 68xx omni switchlerde linkagg size değişimi
alcatel switchlerde linkagg yi aktif etmişseniz ve sonrasında lag altındaki link sayısını arttırmak isterseniz ne yazıkki aktif çalışan sistemde bunun yapılmasına switch yazılımı izin vermiyor..
6850-> lacp linkagg 1 size 4
ERROR: LAERR08 This aggregate already exists 1
1 id linkagg in zaten mevcut olduğunu söylerek değişimize izin vermiyor. 1 id li linkagg ile ilişkilendirilmemiş fazla tanım yoksa farklı bir id ile linkagg tanıtılarak tanımlar bunun üzerine taşınabilir. ancak çok fazla ilişkili tanım varsa bunu yapmak zor olabilir.. switchin aktif linkagg konfigürasyonun
! Link Aggregate :
lacp linkagg 1 size 2 admin state enable
lacp linkagg 1 actor admin key 32768
lacp agg 1/1 actor admin key 32768
lacp agg 1/2 actor admin key 32768
şeklinde oluğunu varsayalım. benim linkagg size ını arttırmak için kullandığım yöntem boot.cfg dosyasını düzenlemek ve switchi bu konfigürasyon ile yeniden başlatmak. switch üzerinde vi editoru mevcut. vi ile boot.cfg dosyasını açalım
6850-> vi working/boot.cfg
dosyası açtıktan sonra ” lacp linkagg 1 size 2 admin state enable” satırını bulalalım “lacp linkagg 1 size 3 admin state enable” olarak değiştirelim ve değişikliği kaydedelim
vi kullanmayı bilmiyorsanız yapılacka işlem 2 nin üzerine gelin x ile 2 yi silin i ye basın sonrasında 3 yazın esc tuşuna baştıktan sonra 😡 ile dosyayı kaydedip çıkın
şimdi switchi başlantmaya sıra geldi. switch working konfig ile yeniden başlatalım.
6850-> reload working rollback-timeout 15
Confirm Activate (Y/N) : Y
yukarıaki roolback-timeout 15 yazarak eğer bir sorun olursa switchin 15 dakika sonra yeniden başlatmasını belirttik. switch up olduktan sonra yaptığımız değişikliğin uygulanıp uygulanmadığını kontrol edelim
6850-> show configuration snapshot linkagg
! Link Aggregate :
lacp linkagg 1 size 3 admin state enable
lacp linkagg 1 actor admin key 32768
lacp agg 1/1 actor admin key 32768
lacp agg 1/2 actor admin key 32768
sorun yokssa yeniden başlatmayı iptal edelim.
6850-> reload cancel
Primary reload scheduled in 757 seconds, Confirm cancel reload (Y/N) : Y
lingagg size değerinin arttırdığıma göre lag altında ilave portumuzu ekleyebiliriz
lacp agg 1/3 actor admin key 32768
nokia sr üzerinde satellite tanım silmek
nokia sr router üzerinde artık kullanmadığımız satellite ları silme işlemini yapmak isteyebiliriz.. öncelikle mevcut satellite durumunu göz atalım.
*B:test_router# show system satellite
===============================================================================
Satellite Information
===============================================================================
SatID Provisioned Type Admin Oper
Equipped Type (if different) State State
-------------------------------------------------------------------------------
esat-1 es48-sass-1gb-sfp up up
esat-2 es48-sass-1gb-sfp up up
esat-3 es48-sass-1gb-sfp down provisioned
(not equipped)
test_router imiz üzerinde 6 tane satellite tanımlı ve bunların 1 tanesi down edilmiş görülmektedir.
silme işlemini yapabilmek için öncelikle port-topology altındaki port eşleştirmesini silmemiz gerekiyor. satellite ile sr port eşleştirmesine bakalım
*B:test_router# show system port-topology
===============================================================================
Port Topology
===============================================================================
Port Far-end
Id Port Id
-------------------------------------------------------------------------------
1/2/1 esat-1/1/u1
2/1/1 esat-1/1/u2
3/1/1 esat-2/1/u1
3/1/2 esat-3/1/u1
4/1/1 esat-2/1/u2
4/1/2 esat-3/1/u2
buradan esat-3 ait port eşleştirmelerini kaldırmamız gerekiyor.
*B:test_router# /configure system port-topology
*B:test_router>config>system>port-topology# info
----------------------------------------------
port 1/2/1 to esat-1/1/u1 create
port 2/1/1 to esat-1/1/u2 create
port 3/1/1 to esat-2/1/u1 create
port 4/1/1 to esat-2/1/u2 create
port 3/1/2 to esat-3/1/u1 create
port 4/1/2 to esat-3/1/u2 create
----------------------------------------------
*B:test_router>config>system>port-topology#
portları no port ile kaldırabiliyor..
*B:test_router>config>system>port-topology# no port 3/1/2
*B:test_router>config>system>port-topology# no port 4/1/2
burada dikkat edilmesi gereken nokta 3/1/2 ve 4/1/2 portlarının shutdown yapılmış olması gerekiyor.. yine aynı şekilde esat-3 altındaki 48 portun shutdown yapılmaış olması ve portların default yani network modunda olması gerekiyor. (tabisi herhanbi bir servis tanımı v.b. de olmaması gerekiyor) aksi bir durum varsa hata verecektir.
*B:test_router# /configure port esat-3/1/[1..48] shutdown
*B:test_router# /configure port esat-3/1/[1..48] ethernet no mode
*B:test_router# /configure port 3/1/2 shutdown
*B:test_router# /configure port 4/1/2 shutdown
bundan sonra satellite ları silebiliriz..
*B:test_router# /configure system satellite
*B:test_router>config>system>satellite#
altına giriyoruz.. bura öncelik sileceğimiz esat-3 içine girelim
*B:test_router>config>system>satellite# eth-sat 3
*B:test_router>config>system>sat>eth-sat# info
mevcut konfigürasonu inceleyelim…
eth-sat 3 create
description "esat-3"
mac-address aa:bb:cc:dd:ee:ff
sat-type "es48-sass-1gb-sfp"
software-repository "SAS-Sx-images"
port-map esat-3/1/1 primary esat-3/1/u1 secondary esat-3/1/u2
port-map esat-3/1/2 primary esat-3/1/u2 secondary esat-3/1/u1
port-map esat-3/1/3 primary esat-3/1/u1 secondary esat-3/1/u2
port-map esat-3/1/4 primary esat-3/1/u2 secondary esat-3/1/u1
port-map esat-3/1/5 primary esat-3/1/u1 secondary esat-3/1/u2
port-map esat-3/1/6 primary esat-3/1/u2 secondary esat-3/1/u1
port-map esat-3/1/7 primary esat-3/1/u1 secondary esat-3/1/u2
port-map esat-3/1/8 primary esat-3/1/u2 secondary esat-3/1/u1
no shutdown
exit
şimdi esat-3 ü shutdown edelim ve satellite tipini kaldıralım.. sat-type ı kaldırmadan esat- silme işlemi yapılamıyor.
*B:test_router>config>system>sat>eth-sat# shutdown
*B:test_router>config>system>sat>eth-sat# no sat-type
şimdi satellite i silebiliriz. bu noktada info ile mevcut konfigürasyona bakarsak port-maplarında silindiği görülecek.
*B:test_router>config>system>sat>eth-sat# exit
*B:test_router>config>system>satellite# no eth-sat 3