<div dir="ltr"><div><p class="MsoNormal">>But I’m wondering if the archived config produced
by rancid is something I can trust as an actual backup. Has anyone tried
restoring the config from rancid?</p>
<br></div>Yup. Worked 4 me. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 4:43 PM, Elliot Wilen <span dir="ltr"><<a href="mailto:elliot.wilen@aechelon.com" target="_blank">elliot.wilen@aechelon.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve been playing with rancid and with the scripts for ciscowlc that have been posted to this list. There was a major variant posted at
<a href="http://www.shrubbery.net/pipermail/rancid-discuss/2012-March/006276.html" target="_blank">
http://www.shrubbery.net/pipermail/rancid-discuss/2012-March/006276.html</a>, however I’ve been working with the “mainstream” scripts which I found most recently at
<a href="http://www.shrubbery.net/pipermail/rancid-discuss/2013-July/006971.html" target="_blank">
http://www.shrubbery.net/pipermail/rancid-discuss/2013-July/006971.html</a> The only variations I’ve found in the main line are:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">wlogin: control paging with set length0/term length 0, vs. config paging disable<u></u><u></u></p>
<p class="MsoNormal">ciscowlc: show running-config, vs. show run-config commands<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Since the second option in each script seems to work on our device, I’ve opted to use those. Our device is running software version 7.0.220.0.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">About the only other wrinkle I found was that I had to “add autoenable <device> 1” for the device within the .cloginrc.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Now wlogin works fine, and rancid-run completes successfully. But I’m not sure the archived configuration is really usable as-is for restoring the configuration. When I compare it to the file I get when I upload the config via tftp, I see:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">tftp’d file uses “config” for each line (this is trivial)<u></u><u></u></p>
<p class="MsoNormal">a number of configuration lines in the tftp’d file don’t seem to have an exact equivalent<u></u><u></u></p>
<p class="MsoNormal">a few odd lines appear in the rancid config archive such as:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">“Not supported”<u></u><u></u></p>
<p class="MsoNormal">“Max no. of clients 0Max no. of clients 0Max no. of clients 0”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve verified that these differences are from the output of “show run-config commands.” I.e., it’s Cisco’s fault.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">But I’m wondering if the archived config produced by rancid is something I can trust as an actual backup. Has anyone tried restoring the config from rancid?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I wonder if I might be better off having rancid trigger tftp (ftp, sftp, etc.) and then grab the file. This page has some ideas that might be incorporated:
<a href="http://networkengineering.stackexchange.com/questions/3246/is-there-an-automatable-way-to-backup-the-configuration-from-a-wlc-2504-controll" target="_blank">
http://networkengineering.stackexchange.com/questions/3246/is-there-an-automatable-way-to-backup-the-configuration-from-a-wlc-2504-controll</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thoughts?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">--<u></u><u></u></p>
<p class="MsoNormal">Elliot Wilen<u></u><u></u></p>
<p class="MsoNormal">Sr. System Administrator<u></u><u></u></p>
<p class="MsoNormal">Aechelon Technology<u></u><u></u></p>
<p class="MsoNormal">E-Mail: <a href="mailto:elliot.wilen@aechelon.com" target="_blank">elliot.wilen@aechelon.com</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_______________________________________________<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></blockquote></div><br></div>
<pre>
E-Mail to and from me, in connection with the transaction
of public business, is subject to the Wyoming Public Records
Act and may be disclosed to third parties.