[rancid] help ciena-ws trouble on Rancid 3.6.2

Tanner Lyle tannerlyle at gmail.com
Tue Jun 6 14:06:25 UTC 2017


My problem still exists, hlogin does now make it to the end of config and
logout now.  However the output gathered from the device does not appear to
be recognized by rancid and fails to move on and be parsed against the
wavesvros.pm. (i think that's how it's supposed to work not 100% for sure).

[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
$VAR1 = {};
$VAR1 = {};
$VAR1 = {};
$VAR1 = {};
$VAR1 = {
          'chassis show' => 'wavesvros::ShowChassis',
          'software show' => 'wavesvros::ShowVersion',
          'configuration show brief' => 'wavesvros::WriteTerm'
        };
software show;chassis show;configuration show brief
executing cienawslogin -t 120 -c"software show;chassis show;configuration
show brief" 192.168.168.32
192.168.168.32: missed cmd(s): all commands
192.168.168.32: End of run not found
        };



On Mon, Jun 5, 2017 at 11:54 PM, heasley <heas at shrubbery.net> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170606/ce251f1d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cienawsoutput.192.168.168.32.raw
Type: image/raw
Size: 15910 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170606/ce251f1d/attachment.bin>


More information about the Rancid-discuss mailing list