[rancid] help ciena-ws trouble on Rancid 3.6.2

heasley heas at shrubbery.net
Tue Jun 6 04:54:13 UTC 2017


Fri, Jun 02, 2017 at 10:29:58AM -0500, Tanner Lyle:
> ---------- Forwarded message ----------
> From: Tanner Lyle <tannerlyle at gmail.com>
> Date: Fri, Jun 2, 2017 at 9:19 AM
> Subject: help ciena-ws trouble on Rancid 3.6.2
> To: rancid-discuss at shrubbery.net

hey, super busy.

> 
> I am having trouble trying to get Rancid 3.6.2 to complete on a Ciena
> Waveserver.  I have other devices that are able to run and create configs
> on my rancid install.
> 
> It is able to login in and runs the commands but never seems to be able to
> pass the output to the parsing scripts
> 
> export NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32
> loadtype: device type ciena-ws
> loadtype: found device type ciena-ws in /usr/local/rancid/etc/rancid.
> types.base
> executing hlogin -t 120 -c"software show;chassis show;configuration show"
> 192.168.168.32
> 192.168.168.32: missed cmd(s): all commands
> 192.168.168.32: End of run not found
> 
> hlogin seems to fail from the use of "logout" instead of "exit" and never
> closes the loop.

hlogin needs a small change to catch that; as follows.  does it fix this?

Index: bin/hlogin.in
===================================================================
--- bin/hlogin.in	(revision 3655)
+++ bin/hlogin.in	(working copy)
@@ -332,7 +332,7 @@
 						  exp_continue
 						}
 	-re "\[\r\n]+"				{ exp_continue }
-	-re "^.+>"				{
+	-re "^.+\[#>]"				{
 						  catch {send -h "exit\r"}
 						  exp_continue
 						}

> I created a new login called cienawslogin and ran it and it seems to close
> the loop but never passes the output to the parse script
> 
> # Ciena Waveserver (XXX WiP)
> ciena-ws;script;rancid -t ciena-ws
> ciena-ws;login;cienawslogin
> ciena-ws;module;wavesvros
> ciena-ws;inloop;wavesvros::inloop
> ciena-ws;command;wavesvros::ShowVersion;software show
> ciena-ws;command;wavesvros::ShowChassis;chassis show
> ciena-ws;command;wavesvros::WriteTerm;configuration show
> 
> export NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32
> loadtype: device type ciena-ws
> loadtype: found device type ciena-ws in /usr/local/rancid/etc/rancid.
> types.base
> executing cienawslogin -t 120 -c"software show;chassis show;configuration
> show" 192.168.168.32
> 192.168.168.32: missed cmd(s): all commands
> 192.168.168.32: End of run not found
> 
> I've included both of the 192.168.168.32.raw's generated by the "export
> NOPIPE=YES && rancid -d -t ciena-ws 192.168.168.32" with both the hlogin
> and wavewslogin files
> 
> is there anyway to debug why the output isn't making it to be parsed
> 
> 
> cienawslogin -d -t 120 -c"software show" 192.168.168.32
> output in "cienawslogin-debug.txt"

> 192.168.168.32
> spawn hpuifilter -- ssh -x -l su 192.168.168.32
> Password: 
> 
> !!! This is a private network. Any unauthorized access or use will lead to prosecution!!!
> 
> 



> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss



More information about the Rancid-discuss mailing list