[rancid] Aruba devices in 3.1
Michael Newton
mnewton at pofp.com
Tue Jan 13 23:22:25 UTC 2015
> On 7 Jan 2015, at 1:50 PM, heasley <heas at shrubbery.net> wrote:
>
> Tue, Jan 06, 2015 at 03:40:55PM -0800, Michael Newton:
>> Hi all; we are looking at getting a RANCID infrastructure in place and have been pleasantly surprised by how easy everything has been so far. Had my first backups of our HP equipment within a few hours of getting started.
>>
>> But we also have a number of Aruba devices, and I can find no information on adding custom device types in this latest 3.1 version of the software. I have downloaded the Aruba scripts from ftp://ftp.shrubbery.net/pub/rancid/contrib/ <ftp://ftp.shrubbery.net/pub/rancid/contrib/> but these were designed for 2.3 and suggest editing rancid-fe. Instead what I ended up with, after much guesswork, is this:
>>
>> $ cat /etc/rancid/rancid.types.conf
>> aruba;script;rancid -t aruba
>> aruba;login;arubalogin
>> aruba;module;rancid
>> aruba;inloop;rancid::inloop
>> aruba;command;rancid::RunCommand;no paging
>> aruba;command;rancid::RunCommand;show running-config
>>
>> $ su -lc "rancid -dt aruba aruba.example.com" rancid
>> loadtype: device type aruba
>> loadtype: found device type aruba in /etc/rancid/rancid.types.conf
>> executing arubalogin -t 90 -c ”no paging;show running-config” aruba.example.com <http://aruba.example.com/>
>> aruba.example.com: missed cmd(s): all commands
>> aruba.example.com: End of run not found
>> aruba.example.com: End of run not found
>>
>>
>> Executing the displayed arubalogin command alone seems to work fine after a couple of small edits, and spits out the config. Why is rancid not recognizing it? Have I missed a step somewhere? Thanks for any pointers!
>
> to support a rancid 2.x style script, all that you need in rancid.types.conf
> ie:
> aruba;script;arubrancid (or whatever its name is)
> aruba;login;arubalogin
>
> like the alteon entry. the second line isnt necessary, but will be used with
> slogin in rancid 3.2.
Thanks for the tip. However, I was having some issues with the old script so I ended up building a new 3.x style Perl module that works for our purposes. If anyone’s interested in improving or stealing it, it can be found here: https://github.com/miken32/rancid-aruba/
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150113/86efd910/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5254 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150113/86efd910/attachment.bin>
More information about the Rancid-discuss
mailing list