[rancid] help ciena-ws trouble on Rancid 3.6.2

Chris Wopat me at falz.net
Tue Jun 6 20:17:08 UTC 2017


> Date: Tue, 6 Jun 2017 04:54:13 +0000
> From: heasley <heas at shrubbery.net >
> 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 believe it's effectively ignoring the 'logout' part, but still getting 
end of run not found and hence not succeeding.


$ rancid -d -t ciena-ws my-waveserver
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" my-waveserver
PROMPT MATCH: my-waveserver>
HIT COMMAND:my-waveserver> software show
     In ShowVersion: my-waveserver> software show
HIT COMMAND:my-waveserver> chassis show
     In ShowChassisClocks: my-waveserver> chassis show
HIT COMMAND:my-waveserver> configuration show
     In ShowConfiguration: my-waveserver> configuration show
my-waveserver: End of run not found
my-waveserver^>logout


This looks similar to Tanner, although he's still using a custom 
'cienawslogin' instead of 'hlogin'.



More information about the Rancid-discuss mailing list