<div dir="ltr"><div dir="ltr">Are you using a recent release of rancid, eg. 3.9?</div><div dir="ltr"><br></div><div>As these scripts did not work for me and the switch stack does not get many updates, I simply backed them up myself in the past.</div><div>All other devices worked fine.</div><div dir="ltr"><br></div><div>Kind regards</div><div>Kevin<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery <<a href="mailto:henri.hemery@gmail.com">henri.hemery@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I think I found the solution.<div><br></div><div>I finally can use h3clogin//h3crancid work for my HPE 5130.</div><div>Here is what I modified in the file h3crancid:</div><div><br></div><div>I had to modify the first line by this:</div><div><br></div><div>#! /usr/bin/perl5.16.3             --» Because it is what we have in /usr/bin</div><div><br></div><div>And I also modified this line:</div><div><br></div><div>my $logincmd = "/usr/local/rancid/bin/h3clogin";        --» because the script was unable to locate h3clogin

</div><div><br></div><div>Thanks for your help all!</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance <<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</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"><div dir="ltr"><div>There is no such file on my version (2.3).</div><div><br></div><div>In 2.3, the config was in rancid-fe, I think and it looked like this:</div><div><br></div><div>    'h3c'               => 'h3crancid',</div><div><br></div><div>The login command was defined it the *rancid script:</div><div><br></div><div>my $logincmd = "h3clogin";<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 8:55 AM henri hemery <<a href="mailto:henri.hemery@gmail.com" target="_blank">henri.hemery@gmail.com</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"><div dir="ltr">Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf like this? :<div><br></div><div>h3c;script;h3crancid -t cmw<br>h3c;login;h3clogin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance <<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</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"><div dir="ltr"><div>I don't know if that helps, but I'm running rancid with a 5120, but I'm using h3crancid, because I use an old version of rancid.</div><div><br></div><div>Regards<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 8:07 AM henri hemery <<a href="mailto:henri.hemery@gmail.com" target="_blank">henri.hemery@gmail.com</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"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br>Have you read this <a href="https://sites.google.com/site/jrbinks/code/rancid/cmwrancid" target="_blank">https://sites.google.com/site/jrbinks/code/rancid/cmwrancid</a> ?</div><div><br></div></div></blockquote><div>Yes, I dicovered cmwlogin from this page and I followed every step, but I think this module is not for every type of comware 7 devices</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>You may want to read this thread: <a href="http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html" target="_blank">http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html</a></div></div></blockquote><div> </div><div>Yes I read that thread, not so much to learn from..But I gonna try to get in touch with the person.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 23, 2019 at 3:57 PM henri hemery <<a href="mailto:henri.hemery@gmail.com" target="_blank">henri.hemery@gmail.com</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"><div dir="ltr"><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hi, </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I would like to know if some of you succeeded in backing UP
HPE switches.</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I successfully backed up HP FF 7910, HP 2530, but no way to
back up HPE 5130 and HP 5120.</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">If I type this command:</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>[rancid@cardlswbkp1 bin]$ ./cmwlogin -c "display
version" 10.1.170.1</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>10.1.170.1</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>spawn telnet 10.1.170.1</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Trying 10.1.170.1...</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Connected to 10.1.170.1.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Escape character is '^]'.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>******************************************************************************</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>* Copyright (c) 2010-2017 Hewlett Packard Enterprise
Development LP          *</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>* Without the owner's prior written
consent,                               
 *</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>* no decompiling or reverse-engineering shall be
allowed.                   
*</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>******************************************************************************</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>login: [login]</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Password:</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>undo smart</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>            
^</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>% Unrecognized command found at '^' position.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>undo interactive</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>            
^</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>% Unrecognized command found at '^' position.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>undo terminal monitor</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>The current terminal is disabled to display logs.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1></i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>terminal length 0</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>      
          ^</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>% Unrecognized command found at '^' position.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>terminal width 132</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>                
^</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>% Unrecognized command found at '^' position.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>display version</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>HPE Comware Software, Version 7.1.070, Release 3208P03</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Copyright (c) 2010-2017 Hewlett Packard Enterprise
Development LP</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks,
4 days, 6 hours, 28 minutes</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Last reboot reason : Cold reboot</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>####suppressed output###</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Boot image version: 7.1.070, Release 3208P03</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>  Compiled Dec 14 2017 18:00:00</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>System image: flash:/5130ei-cmw710-system-r3208p03.bin</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>System image version: 7.1.070, Release 3208P03</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>  Compiled Dec 14 2017 18:00:00</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1>exit</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>Connection closed by foreign host.</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>[rancid@cardlswbkp1 bin]$</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">It work. But when I launch rancid-run, I never receive the
output.</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">When I type: ./cmwlogin -dl 10.1.170.1, the output is
stocked here:</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: does "" (spawn_id exp6) match
regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"?
(No Gate, RE only) gate=yes re=no</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>"^.+(>\u0007?|#| \(enable\))"? (No Gate,
RE only) gate=yes re=no</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><MGMSW1></i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: does "<MGMSW1>" (spawn_id
exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes
re=no</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"?
(No Gate, RE only) gate=yes re=no</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>"^.+(>\u0007?|#| \(enable\))"? (No Gate,
RE only) gate=yes re=yes</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: set expect_out(0,string)
"<MGMSW1>"</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: set expect_out(1,string) ">"</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: set expect_out(spawn_id) "exp6"</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>expect: set expect_out(buffer)
"<MGMSW1>"</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i>tty_raw_noecho: was raw = 0  echo = 1</i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i> </i></b></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Anybody can help?</p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p></div>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Ugo Bellavance (<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</a>)<br></div>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</blockquote></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Ugo Bellavance (<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</a>)<br></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Ugo Bellavance (<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</a>)<br></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Ugo Bellavance (<a href="mailto:ugob@lubik.ca" target="_blank">ugob@lubik.ca</a>)<br></div>
</div></div>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</blockquote></div></div>