<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>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>Thanks for your time and patience.</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 class="">> 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 class="">> 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 class=""><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 class=""><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">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>