Discussion:
[rancid] Aruba devices in 3.1
Michael Newton
2015-01-06 23:40:55 UTC
Permalink
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!

Mike
heasley
2015-01-07 21:50:09 UTC
Permalink
Post by 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.
$ 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.
Michael Newton
2015-01-13 23:22:25 UTC
Permalink
Post by heasley
Post by 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.
$ 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)
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

Loading...