<div dir="ltr">Hi, could you try to use this script: <div><br></div><div><a href="https://github.com/kmorales026/script">https://github.com/kmorales026/script</a> </div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 24, 2020 at 3:59 AM <<a href="mailto:absolutely_free@libero.it">absolutely_free@libero.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
I am using:<br>
<br>
$ bin/rancid -V<br>
rancid 3.6.2<br>
<br>
$ /usr/bin/expect -v<br>
expect version 5.45<br>
<br>
$ /usr/bin/perl -v<br>
<br>
This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi<br>
<br>
$ lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Debian<br>
Description:    Debian GNU/Linux 9.12 (stretch)<br>
Release:        9.12<br>
Codename:       stretch<br>
<br>
I am trying to get configs from Huawei devices (NE40E-M2K-B).<br>
I used these scripts:<br>
<br>
<a href="https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hulogin.in" rel="noreferrer" target="_blank">https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hulogin.in</a><br>
<a href="https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hurancid.in" rel="noreferrer" target="_blank">https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hurancid.in</a><br>
<br>
with very little changes (only shebang).<br>
<br>
I can successfully login with hulogin script but "display version" never completes:<br>
<br>
rancid@rancido:~/bin$ ./hulogin  -t 5 -c"display version" c1-huawei<br>
c1-huawei<br>
spawn ssh -c aes128-ctr -x -l root c1-huawei<br>
User Authentication<br>
Enter password:<br>
<br>
Info: The max number of VTY users is 15, the number of current VTY users online is 2, and total number of terminal users online is 2.<br>
      The current login time is 2020-06-24 11:47:26+02:00 DST.<br>
      The last login time is 2020-06-24 11:37:36+02:00 DST from xxx.yyy.www.zzz through SSH.<br>
<c1-huawei>display version<br>
Huawei Versatile Routing Platform Software<br>
VRP (R) software, Version 8.190 (NE40E V800R011C10SPC100)<br>
Copyright (C) 2012-2019 Huawei Technologies Co., Ltd.<br>
HUAWEI NE40E-M2K-B uptime is 155 days, 0 hour, 46 minutes <br>
Patch Version: V800R011SPH023<br>
<br>
NE40E-M2K-B version information:<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
BKP  version information:<br>
  PCB        Version  : CX68BKP01D REV A<br>
  IPU  Slot  Quantity : 1<br>
  CARD Slot  Quantity : 3<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>
IPU version information:<br>
<br>
IPU (Master) 3 : uptime is 155 days, 0 hour, 45 minutes<br>
  StartupTime 2020/01/21   10:01:40<br>
  SDRAM Memory Size   : 16384 M bytes<br>
  FLASH Memory Size   : 128 M bytes<br>
  CFCARD Memory Size  : 4096 M bytes<br>
  IPU CR5B0BKP0393 version information<br>
  CPU PCB     Version : CX68E4NLAXFB REV B<br>
  EPLD        Version : 004<br>
  FPGA        Version : 009<br>
  FPGA2       Version : 008<br>
(nothing happens here) <============================<br>
Error: TIMEOUT reached - 2<br>
<br>
<br>
<br>
While hurancid -d gives me this:<br>
<br>
rancid@rancido:~/bin$ ./hurancid -d c1-huawei<br>
Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at ./hurancid line 46.<br>
<br>
Any suggestion?<br>
Thank you!<br>
<br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@www.shrubbery.net" target="_blank">Rancid-discuss@www.shrubbery.net</a><br>
<a href="https://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">https://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><b>Kevin Morales</b></div>