[rancid] Aruba devices in 3.1

heasley heas at shrubbery.net
Wed Jan 7 21:50:09 UTC 2015

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
aruba;script;arubrancid (or whatever its name is)

like the alteon entry.  the second line isnt necessary, but will be used with
slogin in rancid 3.2.

More information about the Rancid-discuss mailing list