Experience: How to make a quick search of current config in a OLT

Felipe
Felipe  Platinum  (1)
7 years 10 months ago  View: 2113  Reply: 3
1F

I would like to share an easy way to search in the current configuration of an OLT with an example. I used to need to check the current configuration of a lineprofile, and when you have a big amount of ONUs deployed it?s a little difficult to search one by one. If you know the lineprofile id or name you can do it like the following exaple:

  1. run: OLT_11DSA(config)#display current-configuration | begin ont-lineprofile gpon profile-id 26 (the part colored in red is the text line you need to write, system won?t auto-complete this part)
  2. System response: It will take a long time if the content you search is too much or the string  you input is too long, you can press CTRL_C to break
  3. Result of the search:
ont-lineprofile gpon profile-id 26 profile-name "line-profile_26"
  tcont 1 dba-profile-id 11
  tcont 3 dba-profile-id 14
  tcont 4 dba-profile-id 15
  tcont 5 dba-profile-id 12
  tcont 10 dba-profile-id 1
  gem add 0 eth tcont 10 priority-queue 3
  gem add 1 tdm tcont 1 encrypt on
  gem add 2 tdm tcont 1 encrypt on
  gem add 3 eth tcont 5
  gem add 5 eth tcont 3
  gem add 6 eth tcont 4
  gem add 7 eth tcont 4
  gem add 8 eth tcont 5
  gem add 9 eth tcont 5
  gem add 10 eth tcont 5
  gem add 11 eth tcont 5
  gem mapping 0 0 vlan 114
  gem mapping 1 1 e1 1
  gem mapping 3 4 vlan 3100
  gem mapping 5 2 vlan 2500
  gem mapping 6 3 vlan 2501
  gem mapping 7 3 vlan 2502
  gem mapping 8 5 vlan 3044
  gem mapping 9 5 vlan 3045
  gem mapping 10 5 vlan 3046
  gem mapping 11 5 vlan 3047

  commit


You can do this action with any part of the current configuration, you only need to know what you are looking for!

Hope this can be useful for somebody!

B.R. Felipe

Neen
Neen  Platinum 
7 years 10 months ago
2F

It is useful, thank you for sharing.

Kevin.wangping
Kevin.wangping  Platinum 
7 years 10 months ago
3F

Yeah, its  a good example on how to control the matched output by using the display current-configuration command.

These keywords shown in the table are used for exact or fuzzy matched output.

|

Indicates the matched output.

-

begin

Displays all lines beginning from the first matched line.

-

include

Matches the string including the regular expression.

-

exclude

Matches the string excluding the regular expression.

-

TEXT

Indicates the regular expression. When you need to input the required regular expression, use this parameter.

Character string type, a string of 1-255 characters.

Click the following link to see more abut this command :)

http://support.huawei.com/hdx/hdx.do?tocLib=SE000070936731187392&tocV=02&id=GUID2B5C2D63-43AC-4C0E-9548-C5B8E7D25841&tocURL=resources%252fcmd%252fdisplay%255fcurrent%252dconfiguration%252ehtml&p=t&fe=1&ui=3

 

fabien.abodo
fabien.abodo  Junior 
7 years 9 months ago
4F
Cet astuce est très pratique