[rancid] Support Switch Huawei Quidway S5328

Juan Carlos Buitrago Zapata jcbuitrago at edatel.com.co
Tue Jun 4 14:28:35 UTC 2013


Thank you Bob, but I don't know exactly  what you mean. I'm not an expert in expect. Could you do more clear in your explanation?

Regards,

EDATEL, te acerca

JUAN CARLOS BUITRAGO ZAPATA
Ingeniero Operación Plataformas
EDATEL S.A. E.S.P.
Teléfono: (574) 3846508 Fax: (574) 3846500
jcbuitrago at edatel.com.co<mailto:jcbuitrago at edatel.com.co>
www.edatel.com.co<http://www.edatel.com.co/>
Medellín - Colombia
[cid:image001.png at 01CE6105.917137D0]

De: bob watson [mailto:bobthebaritone at gmail.com]
Enviado el: viernes, 31 de mayo de 2013 06:21 p.m.
Para: Juan Carlos Buitrago Zapata
CC: Rancid-discuss at shrubbery.net
Asunto: Re: [rancid] Support Switch Huawei Quidway S5328

Juan,

Should there be a space between the parameter -c and the argument?

Always try to run your login with exp_internal parameter. Then you can see with what expect is having a problem. See http://www.cotse.com/dlf/man/expect/exp_internal.htm.

Cheers

Bob Watson
BAppSci, MACS, CP

<a href="http://au.linkedin.com/in/bobthebaritone">

          <img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x33.png" width="160" height="33" border="0" alt="View Robert Watson's profile on LinkedIn">

    </a>

On 1 June 2013 07:28, Juan Carlos Buitrago Zapata <jcbuitrago at edatel.com.co<mailto:jcbuitrago at edatel.com.co>> wrote:
Hello,

I've tried to use rancid for our switch   Huawei Quidway S5328, the commands are the same to our Switch 3Com, Although the backup isn't working.

I would like to know if I have to do something additional to support this new brand.

# h3crancid -d sw-acceso-frontino

defined(%hash) is deprecated at /usr/local/libexec/rancid/h3crancid line 121.
        (Maybe you should just omit the defined()?)
executing h3clogin -t 20 -c"screen-length 0 temporary;display version;display boot-loader;display ip routing-table;display current-configuration" sw-acceso-frontino
sw-acceso-frontino h3clogin error: Error: Wrong parameter found at '^' position.
sw-acceso-frontino h3clogin error: Error: Wrong parameter found at '^' position.
sw-acceso-frontino: clean_run=0 found_end=0
sw-acceso-frontino: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version
sw-acceso-frontino: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version
sw-acceso-frontino: End of run not found
sw-acceso-frontino: End of run not found

------------
With the same Switch :

#env NOPIPE=YES PATH=${PATH}:/usr/local/libexec/rancid/ h3crancid  -d 192.168.40.61

defined(%hash) is deprecated at /usr/local/libexec/rancid/h3crancid line 121.
        (Maybe you should just omit the defined()?)
executing h3clogin -t 20 -c"screen-length 0 temporary;display version;display boot-loader;display ip routing-table;display current-configuration" 192.168.40.61
192.168.40.61 h3clogin error: Error: Wrong parameter found at '^' position.
192.168.40.61 h3clogin error: Error: Wrong parameter found at '^' position.
192.168.40.61<http://192.168.40.61>: clean_run=0 found_end=0
192.168.40.61<http://192.168.40.61>: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version
192.168.40.61<http://192.168.40.61>: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version
192.168.40.61<http://192.168.40.61>: End of run not found
192.168.40.61<http://192.168.40.61>: End of run not found
!

This Execution generate this file: 192.168.40.61.raw and this file has all commands results as shown on next.

[rancid at mde-costal ~/Switch]$ cat 192.168.40.61.raw
192.168.40.61
spawn telnet 192.168.40.61
Trying 192.168.40.61...
Connected to sw-acceso-frontino.
Escape character is '^]'.


Login authentication


Username:rancid
Password:
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
<SW-ACCESO-FRONTINO>super
Now user privilege is 3 level, and only those commands whose level is equal to or less than this level can be used.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
<SW-ACCESO-FRONTINO>
<SW-ACCESO-FRONTINO>undo terminal monitor
Info: Current terminal monitor is off.
<SW-ACCESO-FRONTINO>screen-length disable
                                  ^
Error: Wrong parameter found at '^' position.
<SW-ACCESO-FRONTINO>screen-length 0 temporary
Info: The configuration takes effect on the current user terminal interface only.
<SW-ACCESO-FRONTINO>display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.70 (S5300 V100R005C01SPC100)
Copyright (C) 2000-2011 HUAWEI TECH CO., LTD
Quidway S5328C-EI-24S Routing Switch uptime is 30 weeks, 2 days, 8 hours, 44 minutes

EFGF 0(Master) : uptime is 30 weeks, 2 days, 8 hours, 43 minutes
256M bytes DDR Memory
32M bytes FLASH
Pcb      Version :  VER B
Basic  BOOTROM  Version :  107 Compiled at Jan 18 2011, 22:52:53
CPLD   Version : 69
Software Version : VRP (R) Software, Version 5.70 (S5300 V100R005C01SPC100)
HINDCARD information
Pcb      Version : CX22ETPC VER B
FANCARD information
Pcb      Version : FAN VER B
PWRCARD I information
Pcb      Version : PWR VER A
PWRCARD II information
Pcb      Version : PWR VER A

<SW-ACCESO-FRONTINO>display boot-loader
                            ^
Error: Unrecognized command found at '^' position.
<SW-ACCESO-FRONTINO>display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
        Destinations : 10       Routes : 10

Destination/Mask    Proto  Pre  Cost       Flags NextHop         Interface

     10.50.50.0/24<http://10.50.50.0/24>  Direct 0    0            D   10.50.50.50     Vlanif1945
    10.50.50.50/32<http://10.50.50.50/32>  Direct 0    0            D   127.0.0.1       InLoopBack0
     10.90.90.0/24<http://10.90.90.0/24>  Direct 0    0            D   10.90.90.90     Vlanif1941
    10.90.90.90/32<http://10.90.90.90/32>  Direct 0    0            D   127.0.0.1       InLoopBack0
      127.0.0.0/8<http://127.0.0.0/8>   Direct 0    0            D   127.0.0.1       InLoopBack0
      127.0.0.1/32<http://127.0.0.1/32>  Direct 0    0            D   127.0.0.1       InLoopBack0
   192.168.40.0/23<http://192.168.40.0/23>  Direct 0    0            D   192.168.40.61   Vlanif40
  192.168.40.61/32<http://192.168.40.61/32>  Direct 0    0            D   127.0.0.1       InLoopBack0
    200.35.33.7/32<http://200.35.33.7/32>  Static 60   0           RD   192.168.40.1    Vlanif40
   200.35.33.13/32<http://200.35.33.13/32>  Static 60   0           RD   192.168.40.1    Vlanif40

<SW-ACCESO-FRONTINO>display current-configuration
#
!Software Version V100R005C01SPC100
sysname SW-ACCESO-FRONTINO
#
vlan batch 40 49 to 50 69 90 98 225 227 434 456 706
vlan batch 824 909 to 910 1539 1614 1769 1781 1941 1945 2034 2344
vlan batch 2415 2514 2737 2838 to 2839
#
domain edatel
domain edatel admin
#
undo cluster enable
undo ntdp enable
undo ndp enable
#
undo http server enable
#
hwtacacs-server template edatel
hwtacacs-server authentication
 hwtacacs-server authorization
 hwtacacs-server accounting
 hwtacacs-server shared-key cipher AA")[K_!5\1%`DJL.:OE)Q!!
undo hwtacacs-server user-name domain-included
#
acl name AZTECA-BW 4999
description [BW-CONTROL-AZTECA]
rule 5 permit vlan-id 1945
rule 6 permit vlan-id 1941
#
vlan
 description NODO.B_REP.EL.TOYO_ZTE
#
................... Omitted output
#
interface NULL0
#
user-interface con 0
authentication-mode aaa
user privilege level 15
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
#
return
<SW-ACCESO-FRONTINO>quit
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 0.Connection closed by foreign host.

Thank you in adavance!!

Regards,


JUAN CARLOS BUITRAGO ZAPATA



________________________________
Este mensaje y/o sus anexos son para uso exclusivo de su destinatario intencional y puede contener información legalmente protegida por ser confidencial. Si usted no es el destinatario intencional del mensaje por favor infórmenos de inmediato y elimínelo, así como sus anexos. Igualmente, le comunicamos que cualquier retención, revisión no autorizada, distribución, divulgación, reenvío, copia, impresión, reproducción, o uso indebido de este mensaje y/o sus anexos, está estrictamente prohibida y sancionada legalmente. EDATEL S.A. no se hace responsable en ningún caso por daños derivados de la recepción del presente mensaje.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


________________________________
Este mensaje y/o sus anexos son para uso exclusivo de su destinatario intencional y puede contener información legalmente protegida por ser confidencial. Si usted no es el destinatario intencional del mensaje por favor infórmenos de inmediato y elimínelo, así como sus anexos. Igualmente, le comunicamos que cualquier retención, revisión no autorizada, distribución, divulgación, reenvío, copia, impresión, reproducción, o uso indebido de este mensaje y/o sus anexos, está estrictamente prohibida y sancionada legalmente. EDATEL S.A. no se hace responsable en ningún caso por daños derivados de la recepción del presente mensaje.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130604/313e032f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 80546 bytes
Desc: image001.png
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130604/313e032f/attachment-0001.png>


More information about the Rancid-discuss mailing list