[rancid] Re: Failure with Extreme XOS 12.x

Teun Vink teun at teun.tv
Wed Feb 6 15:11:17 UTC 2008


On Nov 29, 2007, at 9:27 AM, Joachim Jerberg Jensen wrote:
[...]
>> xrancid calls clogin - clogin logs in as an admin user and then  
>> tries to
>> run an 'enable' cmd. Off course this returns not the expected results
>> and the rancid script times out...
>>
>> Log output:
>> Trying to get all of the configs.
>> couldn't compile regular expression pattern: quantifier operand  
>> invalid
>>  while executing
>> "expect -nobrace -re {* tln-ch-zr([^#>\r\n]+)?[#>](\([^)\r\n]+\))?}  
>> {}
>> -re {[
>> ^M]+} { exp_continue }"
>>   invoked from within
>> "expect {
>>           -re $reprompt       {}
>>           -re "\[\n\r]+"      { exp_continue }
>>       }"
>>   (procedure "run_commands" line 23)
>>   invoked from within
>> "run_commands $prompt $command"
>>   ("foreach" body line 150)
>>   invoked from within
>> "foreach router [lrange $argv $i end] {
>>   set router [string tolower $router]
>>   # attempt at platform switching.
>>   set platform ""
>>   send_user ..."
>>   (file "/home/rancid/bin/clogin" line 712)^M
>> x.x.x.x: missed cmd(s): show configuration detail,show slot,show
>> configuration,show version,show diag,show memory,show switch
>
> I think this is the problem:
>
>> x.x.x.x: End of run not found
>
> It doesn't detect when the configuration is finished, so the  
> $found_end = 1;
> never becomes set.
>
> Try to edit xrancid:
>
> --
>        # catch anything that wasnt match above.
>        ProcessHistory("COMMENTS","keysort","H0","$_");
>        # end of config
>       #if (/^# End of configuration file/i) {
> ++     if (/^# Module vrrp configuration./i) {
>            printf STDERR "    End WriteTerm: $_" if ($debug);
>            $found_end = 1;
>            return(0);
> --
> This will set $found_end=1 when it detects the part where VRRP is  
> configured, which is the last part of the configuration.
> It's a nasty hack, but it should work.
>

Hi,

I'm experiencing similar problems on our X450's running XOS 12. I've  
tried the patch mentioned above, but still the rancid runs don't end.

Was this patch all you did? If so, could you please share your xrancid  
file with me to see what I did wrong?

Thanks,

Teun


More information about the Rancid-discuss mailing list