[rancid] Mikrotik slow exports

john heasley heas at shrubbery.net
Thu Dec 8 17:34:27 UTC 2011


Thu, Dec 08, 2011 at 12:22:46PM -0500, Michael W. Lucas:
> Hi,
> 
> I'm using rancid-2.3.3 on FreeBSD, along with mtrancid from 
> http://falz.net/static/rancid/mtrancid
> 
> The Mikrotik scripts are working erratically. I thought at first this
> was because an "export" takes quite a while on my border device, but
> it happens even when I run it against a single small 750 (called
> "barn").  I can SSH to this small router just fine.
> 
> If I run "rancid-run -r barn" the log shows the usual "End of run not found."
> 
> Running mtlogin -d barn 
> 
> %mtrancid -d barn
> executing mtlogin -t 90 -c"system package print detail;system routerboard print;system license print;export" barn
> PROMPT MATCH: ] > 
> HIT COMMAND:[admin at MikroTik] > system package print detail
>     In SystemPackagePrintDetail: [admin at MikroTik] > system package print detail
> 
> [considerable hang here]
> 
> barn: missed cmd(s): system license print,system routerboard print,export
> barn: missed cmd(s): system license print,system routerboard print,export
> barn: End of run not found
> barn: End of run not found
> #
> 
> Any suggestions on what's gone wrong here, or how to debug this?

grab rancid 2.3.7 and use
	mtlogin -d -c 'commands;command;...'
to collect what the expect is really doing/waiting for.


More information about the Rancid-discuss mailing list