<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Jan 2015, at 1:50 PM, heasley <<a href="mailto:heas@shrubbery.net" class="">heas@shrubbery.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Tue, Jan 06, 2015 at 03:40:55PM -0800, Michael Newton:<br class=""><blockquote type="cite" class="">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.<br class=""><br class="">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 <a href="ftp://ftp.shrubbery.net/pub/rancid/contrib/" class="">ftp://ftp.shrubbery.net/pub/rancid/contrib/</a> <<a href="ftp://ftp.shrubbery.net/pub/rancid/contrib/" class="">ftp://ftp.shrubbery.net/pub/rancid/contrib/</a>> but these were designed for 2.3 and suggest editing rancid-fe. Instead what I ended up with, after much guesswork, is this:<br class=""><br class="">$ cat /etc/rancid/rancid.types.conf<br class="">aruba;script;rancid -t aruba<br class="">aruba;login;arubalogin<br class="">aruba;module;rancid<br class="">aruba;inloop;rancid::inloop<br class="">aruba;command;rancid::RunCommand;no paging<br class="">aruba;command;rancid::RunCommand;show running-config<br class=""><br class="">$ su -lc "rancid -dt aruba <a href="http://aruba.example.com" class="">aruba.example.com</a>" rancid<br class="">loadtype: device type aruba<br class="">loadtype: found device type aruba in /etc/rancid/rancid.types.conf<br class="">executing arubalogin -t 90 -c ”no paging;show running-config” <a href="http://aruba.example.com" class="">aruba.example.com</a> <<a href="http://aruba.example.com/" class="">http://aruba.example.com/</a>><br class=""><a href="http://aruba.example.com" class="">aruba.example.com</a>: missed cmd(s): all commands<br class=""><a href="http://aruba.example.com" class="">aruba.example.com</a>: End of run not found<br class=""><a href="http://aruba.example.com" class="">aruba.example.com</a>: End of run not found<br class=""><br class=""><br class="">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!<br class=""></blockquote><br class="">to support a rancid 2.x style script, all that you need in rancid.types.conf<br class="">ie:<br class="">aruba;script;arubrancid (or whatever its name is)<br class="">aruba;login;arubalogin<br class=""><br class="">like the alteon entry. the second line isnt necessary, but will be used with<br class="">slogin in rancid 3.2.<br class=""></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">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: <a href="https://github.com/miken32/rancid-aruba/" class="">https://github.com/miken32/rancid-aruba/</a><br class=""><div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="color: rgb(51, 102, 153); font-family: verdana, sans-serif; font-size: 10px;"><br class="Apple-interchange-newline"><br class="">Mike</span></span></div></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="color: rgb(51, 102, 153); font-family: verdana, sans-serif; font-size: 10px;"><br class=""></span></span></div></body></html>