<div dir="ltr">Juan,<div><br></div><div>Should there be a space between the parameter -c and the argument?</div><div><br></div><div>Always try to run your login with exp_internal parameter. Then you can see with what expect is having a problem. See <a href="http://www.cotse.com/dlf/man/expect/exp_internal.htm">http://www.cotse.com/dlf/man/expect/exp_internal.htm</a>.</div>
<div><br></div><div style>Cheers</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>Bob Watson</div><div>BAppSci, MACS, CP</div><div><br></div><div><a href="<a href="http://au.linkedin.com/in/bobthebaritone" target="_blank">http://au.linkedin.com/in/bobthebaritone</a>"></div>
<div> </div><div> <img src="<a href="http://www.linkedin.com/img/webpromo/btn_viewmy_160x33.png" target="_blank">http://www.linkedin.com/img/webpromo/btn_viewmy_160x33.png</a>" width="160" height="33" border="0" alt="View Robert Watson's profile on LinkedIn"></div>
<div> </div><div> </a></div></div></div>
<br><br><div class="gmail_quote">On 1 June 2013 07:28, Juan Carlos Buitrago Zapata <span dir="ltr"><<a href="mailto:jcbuitrago@edatel.com.co" target="_blank">jcbuitrago@edatel.com.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ES-CO" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I would like to know if I have to do something additional to support this new brand.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"># h3crancid -d sw-acceso-frontino<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">defined(%hash) is deprecated at /usr/local/libexec/rancid/h3crancid line 121.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> (Maybe you should just omit the defined()?)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">executing h3clogin -t 20 -c"screen-length 0 temporary;display version;display boot-loader;display ip routing-table;display current-configuration" sw-acceso-frontino<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino h3clogin error: Error: Wrong parameter found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino h3clogin error: Error: Wrong parameter found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino: clean_run=0 found_end=0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino: End of run not found<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sw-acceso-frontino: End of run not found<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">------------</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">With the same Switch :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#env NOPIPE=YES PATH=${PATH}:/usr/local/libexec/rancid/ h3crancid -d 192.168.40.61<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">defined(%hash) is deprecated at /usr/local/libexec/rancid/h3crancid line 121.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> (Maybe you should just omit the defined()?)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">192.168.40.61 h3clogin error: Error: Wrong parameter found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">192.168.40.61 h3clogin error: Error: Wrong parameter found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://192.168.40.61" target="_blank">192.168.40.61</a>: clean_run=0 found_end=0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://192.168.40.61" target="_blank">192.168.40.61</a>: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://192.168.40.61" target="_blank">192.168.40.61</a>: missed cmd(s): screen-length 0 temporary,display ip routing-table,display current-configuration,display boot-loader,display version<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://192.168.40.61" target="_blank">192.168.40.61</a>: End of run not found<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://192.168.40.61" target="_blank">192.168.40.61</a>: End of run not found<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This Execution generate this file: 192.168.40.61.raw and this file has all commands results as shown on next.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">[rancid@mde-costal ~/Switch]$ cat 192.168.40.61.raw<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">192.168.40.61<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">spawn telnet 192.168.40.61<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Trying 192.168.40.61...<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Connected to sw-acceso-frontino.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Escape character is '^]'.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Login authentication<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Username:rancid<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Password:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Info: The max number of VTY users is 5, and the number<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> of current VTY users on line is 1.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>super<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Now user privilege is 3 level, and only those commands whose level is equal to or less than this level can be used.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE<u></u><u></u></span></p>
<p class="MsoNormal"><SW-ACCESO-FRONTINO><u></u><u></u></p>
<p class="MsoNormal"><SW-ACCESO-FRONTINO>undo terminal monitor<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Info: Current terminal monitor is off.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>screen-length disable<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Wrong parameter found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>screen-length 0 temporary<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Info: The configuration takes effect on the current user terminal interface only.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>display version<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Huawei Versatile Routing Platform Software<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">VRP (R) software, Version 5.70 (S5300 V100R005C01SPC100)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) 2000-2011 HUAWEI TECH CO., LTD<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Quidway S5328C-EI-24S Routing Switch uptime is 30 weeks, 2 days, 8 hours, 44 minutes<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">EFGF 0(Master) : uptime is 30 weeks, 2 days, 8 hours, 43 minutes<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">256M bytes DDR Memory<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">32M bytes FLASH<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Pcb Version : VER B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Basic BOOTROM Version : 107 Compiled at Jan 18 2011, 22:52:53<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">CPLD Version : 69<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Software Version : VRP (R) Software, Version 5.70 (S5300 V100R005C01SPC100)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HINDCARD information<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Pcb Version : CX22ETPC VER B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">FANCARD information<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Pcb Version : FAN VER B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">PWRCARD I information<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Pcb Version : PWR VER A<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">PWRCARD II information<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Pcb Version : PWR VER A<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>display boot-loader<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Unrecognized command found at '^' position.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>display ip routing-table<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Route Flags: R - relay, D - download to fib<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">------------------------------------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Routing Tables: Public<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> Destinations : 10 Routes : 10<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Destination/Mask Proto Pre Cost Flags NextHop Interface<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://10.50.50.0/24" target="_blank">10.50.50.0/24</a> Direct 0 0 D 10.50.50.50 Vlanif1945<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://10.50.50.50/32" target="_blank">10.50.50.50/32</a> Direct 0 0 D 127.0.0.1 InLoopBack0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://10.90.90.0/24" target="_blank">10.90.90.0/24</a> Direct 0 0 D 10.90.90.90 Vlanif1941<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://10.90.90.90/32" target="_blank">10.90.90.90/32</a> Direct 0 0 D 127.0.0.1 InLoopBack0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a> Direct 0 0 D 127.0.0.1 InLoopBack0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://127.0.0.1/32" target="_blank">127.0.0.1/32</a> Direct 0 0 D 127.0.0.1 InLoopBack0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://192.168.40.0/23" target="_blank">192.168.40.0/23</a> Direct 0 0 D 192.168.40.61 Vlanif40<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://192.168.40.61/32" target="_blank">192.168.40.61/32</a> Direct 0 0 D 127.0.0.1 InLoopBack0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://200.35.33.7/32" target="_blank">200.35.33.7/32</a> Static 60 0 RD 192.168.40.1 Vlanif40<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <a href="http://200.35.33.13/32" target="_blank">200.35.33.13/32</a> Static 60 0 RD 192.168.40.1 Vlanif40<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>display current-configuration<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">!Software Version V100R005C01SPC100<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">sysname SW-ACCESO-FRONTINO<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">vlan batch 40 49 to 50 69 90 98 225 227 434 456 706<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">vlan batch 824 909 to 910 1539 1614 1769 1781 1941 1945 2034 2344<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">vlan batch 2415 2514 2737 2838 to 2839<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">domain edatel<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">domain edatel admin<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">undo cluster enable<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">undo ntdp enable<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">undo ndp enable<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">undo http server enable<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">hwtacacs-server template edatel<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">hwtacacs-server authentication <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> hwtacacs-server authorization <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> hwtacacs-server accounting <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> hwtacacs-server shared-key cipher AA")[K_!5\1%`DJL.:OE)Q!!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">undo hwtacacs-server user-name domain-included<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">acl name AZTECA-BW 4999<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">description [BW-CONTROL-AZTECA]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">rule 5 permit vlan-id 1945<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">rule 6 permit vlan-id 1941<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">vlan </span><u></u><u></u></p>
<p class="MsoNormal"> description NODO.B_REP.EL.TOYO_ZTE<u></u><u></u></p>
<p class="MsoNormal">#<u></u><u></u></p>
<p class="MsoNormal">………………. <span lang="EN-US">Omitted </span>output<span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">interface NULL0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">user-interface con 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">authentication-mode aaa<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">user privilege level 15<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">user-interface vty 0 4<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">authentication-mode aaa<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">user privilege level 15<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">return<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><SW-ACCESO-FRONTINO>quit<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Info: The max number of VTY users is 5, and the number<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> of current VTY users on line is 0.Connection closed by foreign host.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you in adavance!!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="ES" style="font-family:"Trebuchet MS","sans-serif";color:#1f497d">JUAN CARLOS BUITRAGO ZAPATA<br>
</span></b><span lang="ES" style="font-family:"Trebuchet MS","sans-serif";color:#1f497d"><br>
<br>
</span><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<hr>
<font face="Arial" color="Navy">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.<br>
</font>
</div>
<br>_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br></blockquote></div><br></div>