Discussion:
[rancid] Re: Device not issuing and "End"
Chirayu Patel
2008-05-23 19:49:10 UTC
Permalink
Anyone figure out a work around?



Thanks!
Saku Ytti
2008-05-26 11:43:38 UTC
Permalink
Post by Chirayu Patel
Anyone figure out a work around?
Rancid already supports those nodes, with:

if ($type =~ /^CE$/ && $linecnt > 5) {
$found_end = 1;
return(1);
}


Basically I don't think the end-of-run check is very
useful anyhow. Just x lines + prompt seen again
should do the trick and be more portable.

Thanks,
--
++ytti
john heasley
2008-05-27 16:14:57 UTC
Permalink
Post by Saku Ytti
Post by Chirayu Patel
Anyone figure out a work around?
if ($type =~ /^CE$/ && $linecnt > 5) {
$found_end = 1;
return(1);
}
Basically I don't think the end-of-run check is very
useful anyhow. Just x lines + prompt seen again
should do the trick and be more portable.
I disagree. merely receiving the prompt back has proven itself not a
reliable indicator. if the box provides an end-of-config marker and we
do not received it, then something is broken. if the box does not provide
an end-of-config marker, then its broken and you should haggle your sales
rep until they start to lose sleep. if it provides one and we cant't
bothered to check for it, then we're broken.
Saku Ytti
2008-05-28 09:05:02 UTC
Permalink
Post by john heasley
I disagree. merely receiving the prompt back has proven itself not a
reliable indicator. if the box provides an end-of-config marker and we
do not received it, then something is broken. if the box does not provide
an end-of-config marker, then its broken and you should haggle your sales
rep until they start to lose sleep. if it provides one and we cant't
bothered to check for it, then we're broken.
If we're talking IOS specifically, most other boxes do not have any magic
marker for end-of-config. And many of these boxes, would work with
'cisco' style rancid just by removing end-of-config check.
Anyhow, I'm not going to argue about. I'm happy with what rancid
does today, as it's easy for me to hack the check away when needed,
but it seems for some it seems to be big problem.

Thanks,
--
++ytti
Loading...