[rancid] End of config in Extreme Switches
Alan McKinnon
alan.mckinnon at gmail.com
Wed Oct 2 10:09:54 UTC 2013
On 02/10/2013 09:14, Aleksey P wrote:
> Hi to All.
> Heasley, I sent to you file with output on email.
> Alan, I tried clean install ("as-shipped") of 2.3.8 (with only "show
> configuration") and as I wrote - I recieve "End of run not found:"
Regular rancid has this at the end of WriteTerm():
# The ContentEngine lacks a definitive "end of config" marker. If we
# know that it is a CE, SAN, or NXOS and we have seen at least 5 lines
# of write term output, we can be reasonably sure that we got the
config.
if (($type == "CE" || $type == "SAN" || $type == "NXOS" ) &&
$linecnt > 5) {
$found_end = 1;
return(0);
}
To me that's a more sensible approach - you can't include checks for
markers that do not exist in the output.
>
>
>
> 2013/10/1 heasley <heas at shrubbery.net <mailto:heas at shrubbery.net>>
>
> Tue, Oct 01, 2013 at 03:36:31PM +0100, Paul Thornton:
> > Hi Alan,
> >
> > On 01/10/2013 15:19, Alan McKinnon wrote:
> >
> > > If not, rather spend your efforts writing code that works
> exactly that
> > > way, rather than deliberately throwing config away.
> >
> > I last looked into this a few months ago - but IIRC, if we do that
> then
> > found_end didn't get set so that then leads to another issue.
> >
> > I'm just doing some testing with a standard xrancid applying the
> various
> > mods I've made to xrancid in the past months to get a firm idea of
> what
> > combination works. It was one of those "Try option A, then add B
> and C
> > - ah, it works OK now, I won't touch it" debugging sessions I'm
> afraid.
> >
> > It would be useful to properly fix this for everyone using Extreme
> kit.
>
> would one or two of you send complete
> "clogin -c 'show configuration detail;show configuration'" output to me?
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net <mailto:Rancid-discuss at shrubbery.net>
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
--
Alan McKinnon
alan.mckinnon at gmail.com
More information about the Rancid-discuss
mailing list