[rancid] Issue with Huawei device NE40E-M2K-B

Kevin Morales kevin.moralez at gmail.com
Wed Jun 24 13:30:52 UTC 2020


Hi, could you try to use this script:

https://github.com/kmorales026/script


On Wed, Jun 24, 2020 at 3:59 AM <absolutely_free at libero.it> wrote:

> Hi,
> I am using:
>
> $ bin/rancid -V
> rancid 3.6.2
>
> $ /usr/bin/expect -v
> expect version 5.45
>
> $ /usr/bin/perl -v
>
> This is perl 5, version 24, subversion 1 (v5.24.1) built for
> x86_64-linux-gnu-thread-multi
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description:    Debian GNU/Linux 9.12 (stretch)
> Release:        9.12
> Codename:       stretch
>
> I am trying to get configs from Huawei devices (NE40E-M2K-B).
> I used these scripts:
>
> https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hulogin.in
> https://github.com/ssinyagin/rancid-ssi/blob/master/bin/hurancid.in
>
> with very little changes (only shebang).
>
> I can successfully login with hulogin script but "display version" never
> completes:
>
> rancid at rancido:~/bin$ ./hulogin  -t 5 -c"display version" c1-huawei
> c1-huawei
> spawn ssh -c aes128-ctr -x -l root c1-huawei
> User Authentication
> Enter password:
>
> 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.
>       The current login time is 2020-06-24 11:47:26+02:00 DST.
>       The last login time is 2020-06-24 11:37:36+02:00 DST from
> xxx.yyy.www.zzz through SSH.
> <c1-huawei>display version
> Huawei Versatile Routing Platform Software
> VRP (R) software, Version 8.190 (NE40E V800R011C10SPC100)
> Copyright (C) 2012-2019 Huawei Technologies Co., Ltd.
> HUAWEI NE40E-M2K-B uptime is 155 days, 0 hour, 46 minutes
> Patch Version: V800R011SPH023
>
> NE40E-M2K-B version information:
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> BKP  version information:
>   PCB        Version  : CX68BKP01D REV A
>   IPU  Slot  Quantity : 1
>   CARD Slot  Quantity : 3
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> IPU version information:
>
> IPU (Master) 3 : uptime is 155 days, 0 hour, 45 minutes
>   StartupTime 2020/01/21   10:01:40
>   SDRAM Memory Size   : 16384 M bytes
>   FLASH Memory Size   : 128 M bytes
>   CFCARD Memory Size  : 4096 M bytes
>   IPU CR5B0BKP0393 version information
>   CPU PCB     Version : CX68E4NLAXFB REV B
>   EPLD        Version : 004
>   FPGA        Version : 009
>   FPGA2       Version : 008
> (nothing happens here) <============================
> Error: TIMEOUT reached - 2
>
>
>
> While hurancid -d gives me this:
>
> rancid at rancido:~/bin$ ./hurancid -d c1-huawei
> Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at
> ./hurancid line 46.
>
> Any suggestion?
> Thank you!
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at www.shrubbery.net
> https://www.shrubbery.net/mailman/listinfo/rancid-discuss
>


-- 
*Kevin Morales*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20200624/b4b7b200/attachment.htm>


More information about the Rancid-discuss mailing list