[rancid] How to extend Rancid. Basics.

Michael Newton mnewton at pofp.com
Sat Aug 1 14:54:33 UTC 2015

I did something up for our Aruba switches a couple of months ago. I'm not a Perl guy but my PHP and regular expressions background was enough to figure it out: https://github.com/miken32/rancid-aruba<https://github.com/miken32/rancid-aruba/>/<https://github.com/miken32/rancid-aruba/>. As you suspect, the modular method is the way that modern RANCID works. If clogin works for your gear then you're one step ahead; you just need to write the Perl module. (Note that even though the Cisco login works, it may not react properly to failure conditions since error messages aren't necessarily the same.) Use an existing Perl module to figure out what's going on, and rebuild to your liking.

Michael Newton

On Sat, Aug 1, 2015 at 2:49 AM -0700, "jm+rancid at roth.lu" <jm+rancid at roth.lu<mailto:jm+rancid at roth.lu>> wrote:

Hi there,

I wanted to extend Rancid with a script to monitor some Checkpoint Gaia

What needs to be done there is login, issue a command to stop
pagination, and then say "show configuration". That's it.

Yeah I know these devices allow a scheduled backup that I could somehow
inject into SVN. Certainly. But that is not the question.

Now I find a myriad of scripts for other devices but which seem too
complicated to me, since I'm not the absolute Perl guru.

Clogin works fine for the login, expect for some commands for setting up
the terminal that it gives, which don't make sense on Checkpoint.

The question thus is: what is the absolute minimum required feature set
of the actual script to interact with the main rancid application i.e.
feed it the content so it is stored in SVN?

I don't want to use any advanced features. Is there a doc on all of this?
I'd love to provide "signatures" for certain devices but this somehow
stands in my way.

I also see that there seem to be several approchaches. There are
different xxrancid scripts in the bin directory. On the other hand, some
devices seem to call rancid directly with the -t parameter, which seems
to use libs from the lib directory, which looks like a more modular
approach. What's the difference, and what is the official/recommended


Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150801/951b64fc/attachment.html>

More information about the Rancid-discuss mailing list