<div dir="ltr"><div><span style="font-size:12.8px">My problem still exists, hlogin does now make it to the end of config and logout now. However t</span><span style="font-size:12.8px">he output gathered from the device does not appear to be recognized by rancid and fails to move on and be parsed against the <a href="http://wavesvros.pm">wavesvros.pm</a>. (i think that's how it's supposed to work not 100% for sure).</span></div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px">[rancid@localhost logs]$ rancid -d -t ciena-ws 192.168.168.32</span></div><div><span style="font-size:12.8px">loadtype: device type ciena-ws</span></div><div><span style="font-size:12.8px">loadtype: found device type ciena-ws in /usr/local/rancid/etc/rancid.types.base</span></div><div><span style="font-size:12.8px">$VAR1 = {};</span></div><div><span style="font-size:12.8px">$VAR1 = {};</span></div><div><span style="font-size:12.8px">$VAR1 = {};</span></div><div><span style="font-size:12.8px">$VAR1 = {};</span></div><div><span style="font-size:12.8px">$VAR1 = {</span></div><div><span style="font-size:12.8px"> 'chassis show' => 'wavesvros::ShowChassis',</span></div><div><span style="font-size:12.8px"> 'software show' => 'wavesvros::ShowVersion',</span></div><div><span style="font-size:12.8px"> 'configuration show brief' => 'wavesvros::WriteTerm'</span></div><div><span style="font-size:12.8px"> };</span></div><div><span style="font-size:12.8px">software show;chassis show;configuration show brief</span></div><div><span style="font-size:12.8px">executing cienawslogin -t 120 -c"software show;chassis show;configuration show brief" 192.168.168.32</span></div><div><span style="font-size:12.8px"><a href="http://192.168.168.32">192.168.168.32</a>: missed cmd(s): all commands</span></div><div><span style="font-size:12.8px"><a href="http://192.168.168.32">192.168.168.32</a>: End of run not found</span></div><div><span style="font-size:12.8px"> };</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 5, 2017 at 11:54 PM, 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">Fri, Jun 02, 2017 at 10:29:58AM -0500, Tanner Lyle:<br>
> ---------- Forwarded message ----------<br>
> From: Tanner Lyle <<a href="mailto:tannerlyle@gmail.com">tannerlyle@gmail.com</a>><br>
> Date: Fri, Jun 2, 2017 at 9:19 AM<br>
> Subject: help ciena-ws trouble on Rancid 3.6.2<br>
> To: <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
<br>
hey, super busy.<br>
<br>
><br>
> I am having trouble trying to get Rancid 3.6.2 to complete on a Ciena<br>
> Waveserver. I have other devices that are able to run and create configs<br>
> on my rancid install.<br>
><br>
> It is able to login in and runs the commands but never seems to be able to<br>
> pass the output to the parsing scripts<br>
><br>
> export NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32<br>
> loadtype: device type ciena-ws<br>
> loadtype: found device type ciena-ws in /usr/local/rancid/etc/rancid.<br>
> types.base<br>
> executing hlogin -t 120 -c"software show;chassis show;configuration show"<br>
> 192.168.168.32<br>
> <a href="http://192.168.168.32" rel="noreferrer" target="_blank">192.168.168.32</a>: missed cmd(s): all commands<br>
> <a href="http://192.168.168.32" rel="noreferrer" target="_blank">192.168.168.32</a>: End of run not found<br>
><br>
> hlogin seems to fail from the use of "logout" instead of "exit" and never<br>
> closes the loop.<br>
<br>
hlogin needs a small change to catch that; as follows. does it fix this?<br>
<br>
Index: bin/<a href="http://hlogin.in" rel="noreferrer" target="_blank">hlogin.in</a><br>
==============================<wbr>==============================<wbr>=======<br>
--- bin/<a href="http://hlogin.in" rel="noreferrer" target="_blank">hlogin.in</a> (revision 3655)<br>
+++ bin/<a href="http://hlogin.in" rel="noreferrer" target="_blank">hlogin.in</a> (working copy)<br>
@@ -332,7 +332,7 @@<br>
exp_continue<br>
}<br>
-re "\[\r\n]+" { exp_continue }<br>
- -re "^.+>" {<br>
+ -re "^.+\[#>]" {<br>
catch {send -h "exit\r"}<br>
exp_continue<br>
}<br>
<br>
> I created a new login called cienawslogin and ran it and it seems to close<br>
> the loop but never passes the output to the parse script<br>
><br>
> # Ciena Waveserver (XXX WiP)<br>
> ciena-ws;script;rancid -t ciena-ws<br>
> ciena-ws;login;cienawslogin<br>
> ciena-ws;module;wavesvros<br>
> ciena-ws;inloop;wavesvros::<wbr>inloop<br>
> ciena-ws;command;wavesvros::<wbr>ShowVersion;software show<br>
> ciena-ws;command;wavesvros::<wbr>ShowChassis;chassis show<br>
> ciena-ws;command;wavesvros::<wbr>WriteTerm;configuration show<br>
><br>
> export NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32<br>
> loadtype: device type ciena-ws<br>
> loadtype: found device type ciena-ws in /usr/local/rancid/etc/rancid.<br>
> types.base<br>
> executing cienawslogin -t 120 -c"software show;chassis show;configuration<br>
> show" 192.168.168.32<br>
> <a href="http://192.168.168.32" rel="noreferrer" target="_blank">192.168.168.32</a>: missed cmd(s): all commands<br>
> <a href="http://192.168.168.32" rel="noreferrer" target="_blank">192.168.168.32</a>: End of run not found<br>
><br>
> I've included both of the 192.168.168.32.raw's generated by the "export<br>
> NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32" with both the hlogin<br>
> and wavewslogin files<br>
><br>
> is there anyway to debug why the output isn't making it to be parsed<br>
><br>
><br>
> cienawslogin -d -t 120 -c"software show" 192.168.168.32<br>
> output in "cienawslogin-debug.txt"<br>
<br>
> 192.168.168.32<br>
> spawn hpuifilter -- ssh -x -l su 192.168.168.32<br>
> Password:<br>
><br>
> !!! This is a private network. Any unauthorized access or use will lead to prosecution!!!<br>
><br>
><br>
<br>
<br>
<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>
<br>
</blockquote></div><br></div>