[rancid] fresh rancid 3.2 install

Alan McKinnon alan.mckinnon at gmail.com
Thu Jun 25 13:18:35 UTC 2015


On 25/06/2015 11:27, Josten, Michael wrote:
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] Im Auftrag von Alan McKinnon
> Gesendet: Donnerstag, 25. Juni 2015 09:47
> An: rancid-discuss at shrubbery.net
> Betreff: Re: [rancid] fresh rancid 3.2 install
> 
> On 25/06/2015 09:35, Josten, Michael wrote:
>> Hello everyone,
>>
>>  
>>
>> I did a fresh rancid 3.2 install on a test machine before upgrading 
>> our productive system from 2.3.8 to 3.2.
>> We use many Brocade switches ( FCX, ICX, MLX, RX, SX Series ) and some 
>> ProCurves. I already read through the mailing list to find someone 
>> with similar problems and NO, my router.db file doesn't contain ":" as 
>> separator :P OS is Ubuntu 14.04. Rancid compiled with default options. 
>> Logfile says sth. like this
>>
>>  
>>
>> ----------------------------------------------
>>
>>  
>>
>> Trying to get all of the configs.
>>
>> mlxkr01: missed cmd(s): all commands
>>
>> mlxkr01 flogin error: Error: TIMEOUT reached
>>
>> mlxkr01: End of run not found
>>
>> !
>>
>> =====================================
>>
>> Getting missed routers: round 1.
>>
>> mlxkr01: missed cmd(s): all commands
>>
>> mlxkr01 flogin error: Error: TIMEOUT reached
>>
>> mlxkr01: End of run not found
>>
>> !
>>
>> =====================================
>>
>> Getting missed routers: round 2.
>>
>> mlxkr01: missed cmd(s): all commands
>>
>> mlxkr01 flogin error: Error: TIMEOUT reached
>>
>> mlxkr01: End of run not found
>>
>> ----------------------------------------------
>>
>>  
>>
>> Clogin works on all devices.
>> flogin also works, BUT when I try to send a command while being logged 
>> in with flogin the dreadfull "TIMEOUT reached" occurs which doesn't 
>> happen when I am logged in via clogin.
>>
>>
>> Files and folders should all have correct rights and flags
> 
> Michael,
> 
> "dreadful" is the right word :-)
> 
> All the errors you post are rancid-speak for "something went wrong", but the code is in no position to give you any clues. First:
> 
> did the faulty devices work OK on 2.3.8?
> are the problem devices all of one type? (i.e. something like all your Ciscos still work great, but all the HPs now fail, or similar?)
> 
> You probably need to run the *rancid scripts individually on each device using the -d debug flag, then go through the output line by line seeing exactly where it went wrong. Considering how kit works and what rancid has to do to get the job done, there's a huge numnber of places where the process can bork.
> 
> 
> 
> 
> --
> Alan McKinnon
> alan.mckinnon at gmail.com
> 
> 
> Hello Alan,
> 
> yes the devices work fine on 2.3.8. I checked devices of several types on version 3.2.
> Running the script in debug mode fixed one problem so far. I forgot to add "add autoenable * 1" to my .cloginrc file.
> However we have a new problem now ;)
> 
> This is the log for "rancid-run" on a Brocade ICX6610 switch stack running on ironware 8.x
> =====================================
> Trying to get all of the configs.
> icxdckr02: found unexpected command - "write term"
> icxdckr02: missed cmd(s): show running-config
> icxdckr02: End of run not found
> !
> =====================================
> 
> I wondered why rancid needs the command "write term" for brocade devices ( which don't support the command )
>  so I looked up /usr/local/rancid/etc/rancid.types.base and commented out all foundry commands and added
> 
> foundry;command;foundry::ShowRun;show running-config
> 
> Which resulted in
> 
> 
> Trying to get all of the configs.
> icxdckr02: missed cmd(s): all commands
> icxdckr02: End of run not found
> !
> =====================================
> Getting missed routers: round 1.
> icxdckr02: missed cmd(s): all commands
> icxdckr02: End of run not found
> !
> =====================================
> Getting missed routers: round 2.
> icxdckr02: missed cmd(s): all commands
> icxdckr02: End of run not found
> !
> 
> Writing "show running" via flogin is no problem.


Based on experience with getting kit to play nicely with rancid, I'd say
there's something wrong with your prompt, as rancid can't identify the
line that starts the "show running-config" output.

Do you get the normal "PROMPT FOUND" output in debug mode?
Any clues in the output around the area where it searches for command
output?

These problems often turn out to be regex-related.


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list