[rancid] Rancid cannot get Extreme XOS config file via crontab

Sylvain 74 sylvain74230 at yahoo.fr
Mon Jul 26 15:17:46 UTC 2010


Hi all,

Rancid v2.3.4 cannot retrieve automatically my Extreme x650 switch's configuration using SSH when I use crontab :

0 * * * * NOPIPE=YES && export NOPIPE && /usr/local/rancid/bin/rancid-run -r lapgensw0

I have the following error in log file :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Trying to get all of the configs.
lapgensw0: missed cmd(s): show configuration
lapgensw0: End of run not found
#
=====================================
Getting missed routers: round 1.
lapgensw0: missed cmd(s): show configuration
lapgensw0: End of run not found
#
=====================================
Getting missed routers: round 2.
lapgensw0: missed cmd(s): show configuration
lapgensw0: End of run not found
#
=====================================
Getting missed routers: round 3.
lapgensw0: missed cmd(s): show configuration
lapgensw0: End of run not found
#
=====================================
Getting missed routers: round 4.
lapgensw0: missed cmd(s): show configuration
lapgensw0: End of run not found
#
ending: Mon Jul 26 15:08:06 CEST 2010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

My switch's config file "lapgensw0" is never updated and after 24 hours I have the following mail :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following routers have not been successfully contacted for
more than 24 hours.
-rw-r-----  1 rancid svn 31088 Jul 22 19:12 lapgensw0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expect's version is 5.42.1.
Rancid works great on my Cisco and HP Procurve switches.
Crontab is not a problem as Rancid retrieve my other switches configs successfully.


If I run the same rancid-run command from a terminal, it works :
NOPIPE=YES && export NOPIPE && /usr/local/rancid/bin/rancid-run -r lapgensw0

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
starting: lun jui 26 16:00:48 CEST 2010

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

Sending        configs/lapgensw0
Transmitting file data .
Committed revision 134.

ending: lun jui 26 16:01:01 CEST 2010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This issue seems to be related to SSH : if I replace "ssh" with "telnet" in .cloginrc I don't have the problem anymore (fetching by crontab is OK in this case).


I tried to modify rancid.conf (to resolve this crontab issue) :
# TERM=network;export TERM
TERM=vt100;export TERM
COLUMNS=160; LINES=48; export COLUMNS LINES
as I've read it somewhere in the list but this doesn't work.

I'm reading forum for days now but I didn't found topics related to the same problem. I upgraded Rancid from v2.3.3 to 2.3.4 and it didn't helped.


Any help is greatly appreciated (I could give more details if you give me some commands to test).

Thanks a lot for this awesome tool !


   Sylvain;


      


More information about the Rancid-discuss mailing list