<div dir="ltr"><div>Started going a little crazy on this and I hope I am closer to it......</div><div><br></div><div>vim /usr/local/rancid/etc/rancid.types.conf</div><div><br></div><div>ciscowlc;login;ciscowlc5</div><div><br>

</div><div>vim /usr/local/rancid/var/networking/router.db</div><div><br></div><div>wlchost;ciscowlc;up</div><div><br></div><div>rancid-run</div><div><br></div><div><br></div><div>tail -f var/logs/networking</div><div><br>

</div><div>unknown router manufacturer for wlchost: ciscowlc</div><div><br></div><div><br></div><div>So it's still not reading the added vendor: ciscowlc</div><div><br></div><div>Had another look in rancid-fe</div><div>

<br></div><div>vim /usr/local/rancid/bin/rancid-fe</div><div><br></div><div># XXX use rancid::loadtype() to parse these files.</div><div>foreach $file ("/usr/local/rancid/etc/rancid.types.base",</div><div>               "/usr/local/rancid/etc/rancid.types.conf") {</div>

<div><br></div><div>The comment states that I need rancid::loadtype<span class="" style="white-space:pre">    </span>installed.   </div><div><span class="" style="white-space:pre">                    </span>   <span class="" style="white-space:pre">                      </span>   </div>

<div>Did a search to see if I had the rancid::loadtype library installed:</div><div><span class="" style="white-space:pre">                 </span>   </div><div>[rancid@ranct1 configs]$ perl -Mrancid::loadtype -e "print\"Module installed.\\n\";"</div>

<div>Can't locate rancid/<a href="http://loadtype.pm">loadtype.pm</a> in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).</div>

<div>BEGIN failed--compilation aborted.</div><div><br></div><div>locate <a href="http://loadtype.pm">loadtype.pm</a> = still no sign.</div><div><br></div><div>Can anyone suggest where I get rancid::loadtype ?? I checked <a href="http://www.cpan.org/">http://www.cpan.org/</a>, OR this something I have messed up during compilation?</div>

<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 1:31 PM, Gavin Jones <span dir="ltr"><<a href="mailto:gavinj84@gmail.com" target="_blank">gavinj84@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok I am pretty sure I have broken my <span style="font-family:arial,sans-serif;font-size:13px"> /usr/local/rancid/etc/rancid.</span><span style="font-family:arial,sans-serif;font-size:13px">types.conf will get back to you guys soon.</span></div>

<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 12:46 PM, Gavin Jones <span dir="ltr"><<a href="mailto:gavinj84@gmail.com" target="_blank">gavinj84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div>Hi heasley, thanks for you reply I made the changes by using the semi-colons in the the router.db and used /usr/local/rancid/etc/rancid.types.conf, however I still have no success.</div><div><br></div>


<div>
Here are my exact steps:</div><div><br></div><div>/usr/local/rancid/bin/ciscowlc5 wlchostname : logs in and saves the config fine.</div><div><br></div><div>Removed the entry ciscowlc;script;ciscowlc5 from /usr/local/rancid/etc/rancid.types.base</div>



<div><br></div><div>Added it in: /usr/local/rancid/etc/rancid.types.conf</div><div>ciscowlc;script;ciscowlc5</div><div><br></div><div>Changed to semi-colons:</div><div><br></div><div>vim /usr/local/rancid/var/networking/router.db</div>



<div>wlchost;ciscowlc;up</div><div><br></div><div>rancid-run</div><div><br></div><div>tail -f var/logs/networking.20140507.10330</div><div><br></div><div>Trying to get all of the configs.</div><div><div>Unknown option: t</div>



<div>ciscowlc wlogin error: Error: Unknown host ciscowlc</div><div>ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands</div><div>ciscowlc: End of run not found</div><div><br></div></div><div>Thanks for your time and patience.</div>



</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 12:49 AM, heasley <span dir="ltr"><<a href="mailto:heas@shrubbery.net" target="_blank">heas@shrubbery.net</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tue, May 06, 2014 at 06:35:02PM +1000, Gavin Jones:<br>
<div>> Hi all,<br>
>            New user to RANCID 3.0 here, I can login to a Cisco WLC no<br>
> issues with:<br>
><br>
>  bin/clogin wlchostname<br>
>  bin/wlogin wlchostname<br>
><br>
> I also have custom WLC scripts, that login to the WLC and backup the config<br>
> and work fine,<br>
> which I obtained from here:<br>
> <a href="http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html" target="_blank">http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html</a><br>
><br>
><br>
> Which I have placed in: /usr/local/rancid/bin and saved as ciscowlc5<br>
><br>
</div>> /usr/local/rancid/bi*n/*ciscowlc5 wlchostname : logs in and saves the<br>
<div>> config no problems.<br>
><br>
> Now everywhere I read, to add a custom script / vendor device you need to<br>
> add the new details in rancid-fe.<br>
><br>
>  /usr/local/rancid/bin/rancid-fe now looks for Vendors in one of these files<br>
><br>
> /usr/local/rancid/etc/rancid.types.base<br>
> /usr/local/rancid/etc/rancid.types.conf<br>
><br>
><br>
> vim /usr/local/rancid/etc/rancid.types.base<br>
<br>
</div>you should put this in rancid.types.conf - YOUR localized config file.<br>
rancid.types.base will be overwritten by installation of new versions of<br>
rancid, as indicated at the top of rancid.types.base.<br>
<div><br>
> ciscowlc;script;ciscowlc5<br>
><br>
> I now update my router.db<br>
><br>
> vim /usr/local/rancid/etc/router.db<br>
><br>
> wlchost:ciscowlc:up<br>
<br>
</div>;'s, not :'s, are the field separator beginning with rancid 3.0.<br>
<div><br>
> I tail the logs and get these errors:<br>
><br>
><br>
> Unknown option: t<br>
> ciscowlc wlogin error: Error: Unknown host ciscowlc<br>
> ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands<br>
> ciscowlc: End of run not found<br>
> !<br>
> Unknown option: t<br>
> ciscowlc wlogin error: Error: Unknown host ciscowlc<br>
> ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands<br>
> ciscowlc: End of run not found<br>
><br>
> can someone please show me the light?<br>
><br>
> why does not use the working,  /usr/local/rancid/bin/ciscowlc script?<br>
><br>
><br>
><br>
> Thanks for your time I seem confused can someone please check my steps for<br>
> adding this script into rancid 3.0 to get it to backup the WLC also if I<br>
> need to add other vendors in the future how to add them into RANCID 3.0?<br>
><br>
> Thanks for your time.<br>
<br>
</div>> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>