[rancid] Edgerouter: showConfig command failure

Andreas Herrmann andreas at in-berlin.de
Tue Oct 24 12:14:08 UTC 2017


Hi,

On 24.10.2017 11:55, heasley wrote:
> Tue, Oct 24, 2017 at 09:06:49AM +0200, Andreas Herrmann:
>> Hi,
>>
>> On 24.10.2017 08:20, Andreas Herrmann wrote:
>>> we have problems with one of our EdgeRouters. I'm not sure if it is fixed in
>>> 3.7 (edgerouter.pm: add match for transient show version command failure).
>>>
>>> Only EdgeRouter Pro 8-Port (v1.9.7+hotfix.4) is reporting this change every
>>> some days:
>>>
>>> -# rancid at ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
>>> -firewall {
>>> +# rancid at ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
>>> +ofirewall {
>>>      all-ping enable
>>>      broadcast-ping disable
>>>
>>> -# rancid at ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
>>> -ofirewall {
>>> +# rancid at ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
>>> +firewall {
>>>      all-ping enable
>>>      broadcast-ping disable

There error is hard to trigger. It has occurred 26 times within the last 49
days (check interval 15 min)

> Is the device perhaps logging to the tty?  Does your ulogin have the stty
> settings just before the main loop of device command-line arguments?

No, there is no logging to the tty. I don't know ulogin exactly. Just changed
some values at sleep (see ulogin.patch). It's rancid version 3.6.2

>>> An EdgeRouter Lite 3-Port is working fine.
>>>
>>> /etc/rancid/rancid.types.conf:
>>>   edgerouter_custom;script;rancid -t edgerouter_custom
>>>   edgerouter_custom;login;ulogin -noenable -t 30
>>>   edgerouter_custom;module;edgerouter
>>>   edgerouter_custom;inloop;edgerouter::inloop
>>>   edgerouter_custom;command;rancid::RunCommand;terminal length 0
>>>   edgerouter_custom;command;edgerouter::ShowVersion;show version | no-more
>>>   edgerouter_custom;command;edgerouter::ShowOffload;show ubnt offload | no-more
>>>   edgerouter_custom;command;edgerouter::WriteTerm;cli-shell-api showConfig
>>> --show-active-only | no-more
>>
>> Some addition:
>>  * ~rancid/bin/ulogin set sleeps to 5s
>>  * not enough for Lite 3-Port -> MAX_ROUNDS=10
>>  * ulogin -noenable -t 30 (was: -noenable -t 10)
> 
> added this to ulogin; the default.  I'd prefer that the user still be able to
> override the timeout in their cloginrc.

For two devices I just created a rancid.types.conf

>>  * {{ | no-more }} decreased formating errors
>>
>> With this changes, only the reported error exists.
> 
> Does terminal length 0 not work on this device?  And, is this option
> universally available.

terminal length 0 is working. I'm unsure if setting "| no-more" really helps.
Have a look at attached log. Devices ams-gw and kleyer90-gw are type
edgerouter and those with IPs are edgerouter_custom.

diff_withedgerouter shows the problem with the standard edgerouter type.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulogin.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171024/472967ff/attachment.bin>
-------------- next part --------------
starting: Tue Oct 24 12:45:01 CEST 2017



Trying to get all of the configs.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 1.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 2.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 3.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 4.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 5.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 6.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 7.
5.6.7.8: missed cmd(s): show version | no-more, show ubnt offload | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 8.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 9.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#
=====================================
Getting missed routers: round 10.
5.6.7.8: missed cmd(s): show version | no-more
5.6.7.8: End of run not found
#

===================================================================
Checking out edgerouter/configs/5.6.7.8
RCS:  /var/lib/rancid/CVS/edgerouter/configs/5.6.7.8,v
VERS: 1.30
***************
===================================================================
Checking out edgerouter/configs/1.2.3.4
RCS:  /var/lib/rancid/CVS/edgerouter/configs/1.2.3.4,v
VERS: 1.225
***************
cvs commit: Examining .
cvs commit: Examining configs
cat: /tmp/tmp.4wrthJzHOi/rancid.edgerouter.28406.diff: No such file or directory

ending: Tue Oct 24 12:47:25 CEST 2017



starting: Tue Oct 24 13:00:01 CEST 2017



Trying to get all of the configs.
All routers sucessfully completed.

===================================================================
Checking out edgerouter/configs/5.6.7.8
RCS:  /var/lib/rancid/CVS/edgerouter/configs/5.6.7.8,v
VERS: 1.30
***************
===================================================================
Checking out edgerouter/configs/1.2.3.4
RCS:  /var/lib/rancid/CVS/edgerouter/configs/1.2.3.4,v
VERS: 1.225
***************
===================================================================
Checking out edgerouter/configs/ams-gw
RCS:  /var/lib/rancid/CVS/edgerouter/configs/ams-gw,v
VERS: 1.15
***************
===================================================================
Checking out edgerouter/configs/kleyer90-gw
RCS:  /var/lib/rancid/CVS/edgerouter/configs/kleyer90-gw,v
VERS: 1.28
***************
cvs commit: Examining .
cvs commit: Examining configs
cat: /tmp/tmp.blkWUuK7zI/rancid.edgerouter.29024.diff: No such file or directory

ending: Tue Oct 24 13:00:15 CEST 2017




starting: Tue Oct 24 13:30:01 CEST 2017



Trying to get all of the configs.
kleyer90-gw: missed cmd(s): show version
=====================================
Getting missed routers: round 1.
kleyer90-gw: missed cmd(s): show version, show hardware cpu, show ubnt offload
kleyer90-gw: End of run not found
#
=====================================
Getting missed routers: round 2.
kleyer90-gw: missed cmd(s): show version
kleyer90-gw: End of run not found
#
=====================================
Getting missed routers: round 3.
All routers sucessfully completed.

===================================================================
Checking out edgerouter/configs/5.6.7.8
RCS:  /var/lib/rancid/CVS/edgerouter/configs/5.6.7.8,v
VERS: 1.30
***************
===================================================================
Checking out edgerouter/configs/1.2.3.4
RCS:  /var/lib/rancid/CVS/edgerouter/configs/1.2.3.4,v
VERS: 1.225
***************
===================================================================
Checking out edgerouter/configs/ams-gw
RCS:  /var/lib/rancid/CVS/edgerouter/configs/ams-gw,v
VERS: 1.15
***************
===================================================================
Checking out edgerouter/configs/kleyer90-gw
RCS:  /var/lib/rancid/CVS/edgerouter/configs/kleyer90-gw,v
VERS: 1.28
***************
cvs commit: Examining .
cvs commit: Examining configs
cat: /tmp/tmp.S1q6plZTxx/rancid.edgerouter.29925.diff: No such file or directory

ending: Tue Oct 24 13:30:53 CEST 2017


-------------- next part --------------
Device: kleyer90-gw (kleyer90-gw)
===================================================================
@@ -1,13 +1,13 @@
 #RANCID-CONTENT-TYPE: edgerouter
 #
-#Version:      v1.9.7+hotfix.4
+#show hardware cpu^JVersion:      v1.9.7+hotfix.4
 #Build ID:     5024004
 #Build on:     10/05/17 04:03
 #HW model:     EdgeRouter Lite 3-Port
 #HW S/N:       DC9FDB28523F
 #
-#Architecture:          mips64
+#show ubnt offload^JArchitecture:          mips64
 #Byte Order:            Big Endian
 #CPU(s):                2
 #On-line CPU(s) list:   0,1
 #Thread(s) per core:    1
@@ -16,8 +16,9 @@
 #L1d cache:             16K
 #L1i cache:             32K
 #L2 cache:              128K
 #
+#cli-shell-api showConfig --show-active-only^J
 #IP offload module   : loaded
 #IPv4
 #  forwarding: disabled
 #  vlan      : disabled
@@ -32,10 +33,10 @@
 #  export    : disabled
 #  dpi       : disabled
 #    version       : 1.302
 #
-# rancid at kleyer90-gw:~$ cli-shell-api showConfig --show-active-only
-firewall {
+# rancid at kleyer90-gw:~$cli-shell-api showConfig --show-active-only
+logfirewall {
     all-ping enable
     broadcast-ping disable
     ipv6-receive-redirects disable
     ipv6-src-route disable



More information about the Rancid-discuss mailing list