Discussion:
[rancid] Pointers for RANCID Script
Ken Celenza
2015-10-22 01:39:39 UTC
Permalink
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alan McKinnon
2015-10-22 07:02:45 UTC
Permalink
On 22/10/2015 03:39, Ken Celenza wrote:
> I put together Rancid for Riverbed based on rblogin from
> http://article.gmane.org/gmane.network.rancid/2697/match=riverbed by
> Bill Jacqmein and panrancid script.
>
> I was hoping I could get some feedback on what mistakes I have made. I
> posted the code here:
> https://github.com/itdependsnetworks/Rancid-Riverbed



It looks very much like a stripped down version of the original Cisco
parser - I recognise the pattern :-)

I'm not familiar with that hardware at all, so can't comment on the data
fetched and what your script does with it, or if rblogin is suitable. So
I looked it over generally and have only two comments:


On line 36, this:
print "rancid 3.1\n";
probably wants changing to the actual script name and current version.


sub ShowConfig pumps all data straight into ProcessHistory() unchanged.
It doesn't do any re-ordering of lists, or redact sensitive information
(with $filter_pwds) at all. I would be very happy to see a kit vendor
get their act together and provide sane output to "show configuration",
but somehow I doubt it. Are you certain this kit gives output that never
requires tweaking, and never contains any sensitive information at all?


--
Alan McKinnon
***@gmail.com
Ken Celenza
2015-10-22 17:37:32 UTC
Permalink
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alan McKinnon
2015-10-22 20:11:53 UTC
Permalink
On 22/10/2015 19:37, Ken Celenza wrote:
> Alan,
>
> Thanks, I don't see anything that would need to be re-ordered, but point
> taken on the passwords. I will look to address that.

I take it you know how to do it? The Cisco script is full of examples,
but does need a decent knowledge of and comfort with regexes



>
> *Sent:* Thursday, October 22, 2015 at 3:02 AM
> *From:* "Alan McKinnon" <***@gmail.com>
> *To:* rancid-***@shrubbery.net
> *Subject:* Re: [rancid] Pointers for RANCID Script
> On 22/10/2015 03:39, Ken Celenza wrote:
>> I put together Rancid for Riverbed based on rblogin from
>> http://article.gmane.org/gmane.network.rancid/2697/match=riverbed by
>> Bill Jacqmein and panrancid script.
>>
>> I was hoping I could get some feedback on what mistakes I have made. I
>> posted the code here:
>> https://github.com/itdependsnetworks/Rancid-Riverbed
>
>
>
> It looks very much like a stripped down version of the original Cisco
> parser - I recognise the pattern :-)
>
> I'm not familiar with that hardware at all, so can't comment on the data
> fetched and what your script does with it, or if rblogin is suitable. So
> I looked it over generally and have only two comments:
>
>
> On line 36, this:
> print "rancid 3.1\n";
> probably wants changing to the actual script name and current version.
>
>
> sub ShowConfig pumps all data straight into ProcessHistory() unchanged.
> It doesn't do any re-ordering of lists, or redact sensitive information
> (with $filter_pwds) at all. I would be very happy to see a kit vendor
> get their act together and provide sane output to "show configuration",
> but somehow I doubt it. Are you certain this kit gives output that never
> requires tweaking, and never contains any sensitive information at all?
>
>
> --
> Alan McKinnon
> ***@gmail.com
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>


--
Alan McKinnon
***@gmail.com
heasley
2015-10-22 15:47:53 UTC
Permalink
Thu, Oct 22, 2015 at 03:39:39AM +0200, Ken Celenza:
> <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I put together&nbsp;<span style="line-height: 1.6em;">Rancid for Riverbed based on rblogin from http://article.gmane.org/gmane.network.rancid/2697/match=riverbed by Bill Jacqmein and panrancid script.</span></div>
>
> <div>&nbsp;</div>
>
> <div>I was hoping I could get some feedback on what mistakes I have made. I posted the code here:</div>
>
> <div>https://github.com/itdependsnetworks/Rancid-Riverbed</div></div></body></html>

i havent looked at your script, but i have support for riverbed for the next
rev. i've left rancid-3.2.99.tar.gz for you to try.
Loading...