[rancid] help ciena-ws trouble on Rancid 3.6.2
Tanner Lyle
tannerlyle at gmail.com
Wed Jun 7 14:57:54 UTC 2017
I should of changed it back to hlogin before i ran the debug, the custom
script is identical to hlogin with the suggested change by heasely, Mine
is not making as far or failing the same way yours is, i would feel better
about it if it was i never make it to the prompt match output stage.
[rancid at localhost logs]$ 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
[rancid at localhost bin]$ diff hlogin cienawslogin
640c640
< -re "^.+>" {
---
> -re "^.+\[#>]" {
On Tue, Jun 6, 2017 at 3:17 PM, Chris Wopat <me at falz.net> wrote:
> 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.t
> ypes.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'.
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170607/ea7ae62e/attachment.html>
More information about the Rancid-discuss
mailing list