[rancid] End of config in Extreme Switches

Aleksey P paleola at gmail.com
Tue Oct 1 13:03:13 UTC 2013


Thanks for the answer. But as I said - after vsm module we have config
lines (different for each switch). Like this:
"#
# Module vsm configuration.
#
create mlag peer "E670-DL-AGG-1"
configure mlag peer "E670-DL-AGG-1" ipaddress <IP> vr VR-Default
enable mlag port 1 peer "E670-DL-AGG-1" id 1
enable mlag port 2 peer "E670-DL-AGG-1" id 2
enable mlag port 3 peer "E670-DL-AGG-1" id 3
enable mlag port 4 peer "E670-DL-AGG-1" id 4
enable mlag port 5 peer "E670-DL-AGG-1" id 5
enable mlag port 6 peer "E670-DL-AGG-1" id 6
enable mlag port 17 peer "E670-DL-AGG-1" id 17
enable mlag port 19 peer "E670-DL-AGG-1" id 19
enable mlag port 20 peer "E670-DL-AGG-1" id 20
enable mlag port 32 peer "E670-DL-AGG-1" id 32
enable mlag port 33 peer "E670-DL-AGG-1" id 33
enable mlag port 34 peer "E670-DL-AGG-1" id 34
enable mlag port 35 peer "E670-DL-AGG-1" id 35
enable mlag port 36 peer "E670-DL-AGG-1" id 36
enable mlag port 38 peer "E670-DL-AGG-1" id 38
enable mlag port 40 peer "E670-DL-AGG-1" id 40
enable mlag port 44 peer "E670-DL-AGG-1" id 44 "

and its very sad that we can't save this config.


2013/10/1 Paul Thornton <prt at prt.org>

> Hi
>
> I had exactly the same problem, and used the same "solution".
>
> However, due to other Extreme oddities a diff for my current xrancid
> against the standard 2.3.8 release is full of debug.
>
> However, the key things I changed to "fix" this (I'm sure others here will
> suggest better ways) are in the attached diff.  I've removed a load of my
> temp debug to tidy it up for you.
>
> Note that I rely on a "# Module XYZ configuration" at the end of the
> config as well, and this almost certainly will break if the version on the
> switch changes.  It is very brittle as well because luckily all of the EXOS
> switches we have are X450 series and running the same software but if you
> have a number of different switches with different software then I can see
> this failing badly.
>
> There are a number of nasty hacks here, so beware:
>
> 1) I've bypassed the last if ($prompt) in the main loop going through the
> output from the switch.
> 2) It relies on a 'Module xxx configuration' in some cases to spot the end
> of the show conf.
> 3) Detecting a clean run, I rely on the SSH message "Connection to
> myswitch.mydomain closed" message.  This has a hard-coded regex which
> happens to match all of my switch names; this should probably be the
> hostname.
>
> As an emergency get-you-going this may help, but please realise that it
> isn't really general case production grade!
>
> Paul.
>
>
> On 01/10/2013 13:08, Aleksey P wrote:
>
>> Hello to all.
>> we use rancid 2.3.4 with Extreme Summit X670 and X650 with XOS 15.3.2.11.
>> I know that in Extreme swithes there no "End of configuration file"
>> string. To fix this I changed "xrancid" file:
>>
>>       -       if (/^# End of configuration file/i) {
>>
>>       -           printf STDERR "    End WriteTerm: $_" if ($debug);
>>
>>       -           $found_end = 1;
>>
>>       -           return(0);
>>
>>       -       }
>>
>> for
>>
>> + if (/^# Module vrrp configuration./i) {
>>
>> + printf STDERR " End WriteTerm: $_" if ($debug);
>>
>> + $found_end = 1;
>>
>> + return(0);
>>
>> + }
>>
>>
>> So rancid found vrrp config and then exit.
>> But now we use "mlag" on Extreme and its config below vrrp. So rancid
>> exit before this config and we have some missed config lines.
>> I tried rancid 2.3.8 (clean install on other server), with all default
>> config files, but only see
>> "...configuration appears to be truncated.
>> ...missed cmd(s): show configuration"
>> in logs.
>>
>> Help me please.
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/**mailman/listinfo/rancid-**discuss<http://www.shrubbery.net/mailman/listinfo/rancid-discuss>
>>
>>
> --
> Paul Thornton
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131001/944b9d2a/attachment.html>


More information about the Rancid-discuss mailing list