<div dir="ltr">Hi,<div><br></div><div>Apologies the link that failed was meant to be: <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><div>
<br></div>
<div>It is found on this page: <a href="http://www.shrubbery.net/rancid/#help" target="_blank">http://www.shrubbery.net/rancid/#help</a></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
Yes agreed it is a broken implementation of the CLI.</div><div class="gmail_extra">I will take a look at the -s option.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Craig<br><br><div class="gmail_quote">On 6 June 2014 03:53, <span dir="ltr"><<a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thu, Jun 05, 2014 at 03:15:41PM +1000, Craig Ayliffe:<br>
<div class="">> Hi,<br>
><br>
> Firstly I tried to subscribe to the mailing list at<br>
> <a href="http://www.shrubbery.net/pipermail/rancid-discuss/" target="_blank">http://www.shrubbery.net/pipermail/rancid-discuss/</a> - but get a 404 error<br>
> going to that page.<br>
<br>
</div>that url looks fine to me. in the logs, i see some failures with bad urls,<br>
which might have been you. if you can verify what url doesnt work and where<br>
you found the url or the referring page, i'll look.<br>
<div class=""><br>
> Anyway my problem today is trying to run the command:<br>
> nlogin -t 90 -f vfw.cloginrc -c "exec nsrp sync global-config check-sum"<br>
> hostname<br>
><br>
> It runs the command successfully but then hangs waiting to finish.<br>
> The output of the command (configuration in sync) is printed out after the<br>
> prompt is displayed which seems to get nlogin out of sync - still looking<br>
> for the prompt which it doesn't see again.<br>
><br>
> Attached is the debug of the commands being run.<br>
><br>
> Below is it running without debug.<br>
> ==============================================<br>
> craiga@syd-monitor-01:~/juniper$ /tmp/nlogin.3.1 -t 90 -f vfw.cloginrc -c<br>
> "exec nsrp sync global-config check-sum" bne-vfw-1b<br>
> bne-vfw-1b<br>
> spawn ssh -c 3des -x -l craiga bne-vfw-1b<br>
> craiga@bne-vfw-1b's password:<br>
> Remote Management Console<br>
> BNE-VFW-1b(B)-><br>
> BNE-VFW-1b(B)-> set console page 0<br>
> BNE-VFW-1b(B)-> exec nsrp sync global-config check-sum<br>
</div>> *BNE-VFW-1b(B)-> configuration in sync*<br>
<div class="">><br>
><br>
> ^Ccraiga@syd-monitor-01:~/juniper$<br>
> ==============================================<br>
><br>
> As far as I can see this is due to Netscreen running this command in the<br>
> background and it returns the display later on after the new prompt is<br>
> already there.<br>
> This doesn't happen when I run the 'get' commands in Netscreen.<br>
><br>
> Any ideas on how to fix this would be awesome thanks<br>
<br>
</div>eh, you could do that with a script via nlogin -s. but, once it receives a<br>
new prompt, the login scripts assume the command is done. to that do a cmd<br>
in the background is a completely broken cli way to do it, imo, and i'd<br>
complain to the vendor.<br>
<br>
see the share dir of the dist for -s examples.<br>
<br><br></blockquote></div><div><br></div>-- <br>Craig Ayliffe
</div></div>