[rancid] Some lines are suppressed in Extreme X0S config files - Workaround

Sylvain 74 sylvain74230 at yahoo.fr
Mon Jul 26 16:33:27 UTC 2010


Hi all,

when Rancid gets Extreme Networks x650's configuration, it misses 1 line every 20 or 30 lines.

It seems that Rancid suppresses the "Press <SPACE> to continue or <Q> to quit:" message but also the next[or previous?] line.

I didn't notice this behavior before because I didn't read carefully fetched config files until now.

My ExtremeXOS version is 12.3.3.6.

As a workaround, there is a "disable clipaging" command since XOS v10.1, that disable the "Press <SPACE> to continue etc..." message.
I know this is not the good way to do it but if I modify xrancid this way :

# diff xrancid xrancid.new 
414a415
>       {'disable clipaging'            => 'ShowVersion'},


I don't have this issue anymore and every line is collected as you can see below :


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: configs/lapgensw0
===================================================================
- -- configs/lapgensw0	(revision 135)
@@ -31,6 +31,7 @@
  configure vlan grid_admin tag 5
  enable flooding vlan grid_admin
  enable learning vlan grid_admin
+ create vlan "grid_info"
  configure vlan grid_info tag 7
  enable flooding vlan grid_info
  enable learning vlan grid_info
@@ -54,6 +55,7 @@
  configure ports 2 far-end-fault-indication off
  disable flow-control tx-pause port 3
  enable flow-control rx-pause port 3
+ configure ports 3 display-string gra12_Blade_10G
  configure ports 3 auto off speed 10000 duplex full 
  configure ports 3 far-end-fault-indication off
  disable flow-control tx-pause port 4
@@ -77,6 +79,7 @@
  enable flow-control rx-pause port 8
  configure ports 8 auto off speed 10000 duplex full 
  configure ports 8 far-end-fault-indication off
+ disable flow-control tx-pause port 9
  enable flow-control rx-pause port 9
  configure ports 9 auto off speed 10000 duplex full 
  configure ports 9 far-end-fault-indication off
@@ -100,6 +103,7 @@
  enable flow-control rx-pause port 14
  configure ports 14 auto off speed 10000 duplex full 
  configure ports 14 far-end-fault-indication off
+ disable flow-control tx-pause port 15
  enable flow-control rx-pause port 15
  configure ports 15 display-string dpmsrv15
  configure ports 15 auto off speed 10000 duplex full 
@@ -123,6 +127,7 @@
  enable flow-control rx-pause port 19
  configure ports 19 display-string dpmsrv11
  configure ports 19 auto off speed 10000 duplex full 
+ configure ports 19 far-end-fault-indication off
  disable flow-control tx-pause port 20
  enable flow-control rx-pause port 20
  configure ports 20 display-string dpmsrv10
@@ -146,6 +151,7 @@
  disable flow-control tx-pause port 24
  enable flow-control rx-pause port 24
  configure ports 24 display-string dpmsrv06
+ configure ports 24 auto off speed 10000 duplex full 
  configure ports 24 far-end-fault-indication off
  disable flow-control tx-pause port 25
  enable flow-control rx-pause port 25
@@ -168,6 +174,8 @@
  configure vlan grid_admin ipaddress 10.10.100.150 255.255.255.224
  configure qosscheduler strict-priority
  #
+ # Module fdb configuration.
+ #
  configure fdb agingtime 300
  configure fdb vpls agingtime 300
  configure iparp vr VR-Default max_entries 8192
@@ -189,6 +197,7 @@
  # Module rtmgr configuration.
  #
  disable iproute sharing 
+ configure iproute priority mpls 20 vr VR-Default 
  configure iproute priority blackhole 50 vr VR-Default 
  configure iproute priority static 1100 vr VR-Default 
  configure iproute priority icmp 1200 vr VR-Default 
[.....]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Every line marked with "+" is a config line that was missed during previous fetches (without disabling clipaging).


I know that the right way is to patch clogin but I'm clearly not able to do that. Is there any candidate ?

Thanks in advance !
Cheers,


  Sylvain;


      


More information about the Rancid-discuss mailing list