<div dir="ltr">I'm not sure which scripts you're referring to, but the hack-ish way would be to run "ATlogin -c "copy running-config startup-config\rY", assuming that ATlogin (or whatever the login script is) isn't terribly different from clogin. <div><br></div><div>You don't necessarily need (or likely want) to modify the <x>rancid scripts to be able to make changes to the devices. If you're going to do that, I'd try to rename them to something else so that it's less likely to get overwritten during upgrades. Granted, the ATrancid script isn't in stock RANCID, but that's not to say that it may not be at some point in the future.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 4:41 AM, Sebastien BEAUDLOT <span dir="ltr"><<a href="mailto:sebastien.beaudlot@univ-avignon.fr" target="_blank">sebastien.beaudlot@univ-avignon.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hi,<br></div><div><br></div><div>I'm using rancid to backup Allied Telesis (and many more) switches configuration thanks to Valentino who posted his own scripts on the list.<br></div><div><br></div><div>Now, i want to use rancid login scripts to send commands to the script, but i'm facing something annoying with this brand.<br></div><div><br></div><div>The 'copy running-config startup-config' command is interactive and ask for the user to press Y key. No way to force this command to be non-interactive.<br></div><div><br></div><div>I tried to fork the ATrancid script to do only this command, but need to hack the ShowConfig loop, thus i a not familiar enough with perl. Does someone already did such a thing ?<br></div><div><br>Regards.<br></div><div><br></div><div>--<br>Sébastien BEAUDLOT<br><br>Administrateur réseaux, téléphonie et flotte mobile<br><br>Direction Opérationnelle des Systèmes d'Information ( DOSI )<br>Pôle Infrastructures<br>Université d'Avignon et des Pays de Vaucluse<br><br>Tèl : 04.90.16.26.04<br>--</div></div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://www.shrubbery.net/<wbr>mailman/listinfo/rancid-<wbr>discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Dan</div>
</div>