<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello!</p>
<p><br>
</p>
<p>I'm trying to troubleshoot a case where rancid's not backing up a device properly because it can't login.</p>
<p><br>
</p>
<p>... In the test.log file: ...</p>
<p></p>
<div>starting: Tue May 16 15:37:25 MDT 2017</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Trying to get all of the configs.</div>
<div>couldn't compile regular expression pattern: parentheses () not balanced</div>
<div> while executing</div>
<div>"expect {</div>
<div> -re "\[\n\r]+" { exp_continue }</div>
<div> -re $reprompt {}</div>
<div> }"</div>
<div> (procedure "run_commands" line 12)</div>
<div> invoked from within</div>
<div>"run_commands $prompt $command"</div>
<div> ("foreach" body line 159)</div>
<div> invoked from within</div>
<div>"foreach router [lrange $argv $i end] {</div>
<div> set router [string tolower $router]</div>
<div> send_user "$router\n"</div>
<div><br>
</div>
<div> # device timeout</div>
<div> set timeout [find t..."</div>
<div> (file "/path-to-rancid/rancid-3.5.1/bin/hlogin" line 657)^M</div>
<div>10.100.116.17: missed cmd(s): all commands</div>
<div>10.100.116.17: End of run not found</div>
<div><br>
</div>
... which after trying to run hrancid I get the same error and it doesn't write the correct debug file 'z'. Looking at the .new file I see it didn't process any of the commands. ...
<p></p>
<p></p>
<div>rancid@truck:~/bin$ hrancid -t z -d 10.100.116.17</div>
<div>executing hlogin -t 90 -c"show version;show flash;show system-information;show system information;show module;show stack;show tech transceivers;show config files;show config status;write term" 10.100.116.17</div>
<div><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
rancid@truck:~/bin$ ls z</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
ls: cannot access 'z': No such file or directory</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>
<div>rancid@truck:~/bin$ ls *.new</div>
<div>10.100.116.17.new</div>
<div><br>
</div>
<br>
</div>
<div><br>
</div>
<p></p>
<p></p>
<div>rancid@truck:~/bin$ cat 10.100.116.17.new </div>
<div>;RANCID-CONTENT-TYPE: hp</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div>;</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<p>... When I run hlogin with the -c option I get the same error. However when I remove the -c option to confirm if I can login at all, I can, with an artifact of (<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">^[[53;211R</span>)
at the prompt. Logging in via SSH doesn't provide this artifact. ...</p>
<p></p>
<div>rancid@SERVER:~/bin$ ./hlogin -f /PATH/rancid-3.5.1/.cloginrc -c 'show ip' x.y.116.17</div>
<div>x.y.116.17</div>
<div>spawn hpuifilter -- ssh -x -l USER x.y.116.17</div>
<div>We'd like to keep you up to date about:</div>
<div> * Software feature updates</div>
<div> * New product announcements</div>
<div> * Special events</div>
<div>Please register your products now at: www.hpe.com/networking/register</div>
<div><br>
</div>
<div><br>
</div>
<div>USER@x.y.116.17's password: </div>
<div>Aruba JL261A 2930F-24G-PoE+-4SFP Switch</div>
<div>Software revision WC.16.02.0016</div>
<div><br>
</div>
<div> (C) Copyright 2017 Hewlett Packard Enterprise Development LP</div>
<div><br>
</div>
<div> RESTRICTED RIGHTS LEGEND</div>
<div> Confidential computer software. Valid license from Hewlett Packard Enterprise</div>
<div> Development LP required for possession, use or copying. Consistent with FAR</div>
<div> 12.211 and 12.212, Commercial Computer Software, Computer Software</div>
<div> Documentation, and Technical Data for Commercial Items are licensed to the</div>
<div> U.S. Government under vendor's standard commercial license.</div>
<div><br>
</div>
<div>Press any key to continueYour previous successful login (as x) was on 2017-05-16 16:28:23 </div>
<div> from 10.100.1.219</div>
<div>hostname# couldn't compile regular expression pattern: parentheses () not balanced</div>
<div> while executing</div>
<div>"expect {</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-re "\[\n\r]+"<span class="Apple-tab-span" style="white-space:pre">
</span>{ exp_continue }</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-re $reprompt<span class="Apple-tab-span" style="white-space:pre">
</span>{}</div>
<div> }"</div>
<div> (procedure "run_commands" line 12)</div>
<div> invoked from within</div>
<div>"run_commands $prompt $command"</div>
<div> ("foreach" body line 159)</div>
<div> invoked from within</div>
<div>"foreach router [lrange $argv $i end] {</div>
<div> set router [string tolower $router]</div>
<div> send_user "$router\n"</div>
<div><br>
</div>
<div> # device timeout</div>
<div> set timeout [find t..."</div>
<div> (file "./hlogin" line 657)</div>
<div><br>
</div>
<div>
<div>rancid@SERVER:~/bin$ ./hlogin -f /PATH/rancid-3.5.1/.cloginrc x.y.116.17</div>
<div>x.y.116.17</div>
<div>spawn ssh -x -l USER x.y.116.17</div>
<div>We'd like to keep you up to date about:</div>
<div> * Software feature updates</div>
<div> * New product announcements</div>
<div> * Special events</div>
<div>Please register your products now at: www.hpe.com/networking/register</div>
<div><br>
</div>
<div><br>
</div>
<div>USER@x.y.116.17's password: </div>
<div>Aruba JL261A 2930F-24G-PoE+-4SFP Switch</div>
<div>Software revision WC.16.02.0016</div>
<div><br>
</div>
<div> (C) Copyright 2017 Hewlett Packard Enterprise Development LP</div>
<div><br>
</div>
<div> RESTRICTED RIGHTS LEGEND</div>
<div> Confidential computer software. Valid license from Hewlett Packard Enterprise</div>
<div> Development LP required for possession, use or copying. Consistent with FAR</div>
<div> 12.211 and 12.212, Commercial Computer Software, Computer Software</div>
<div> Documentation, and Technical Data for Commercial Items are licensed to the</div>
<div> U.S. Government under vendor's standard commercial license.</div>
<div><br>
</div>
<div>Press any key to continue</div>
<div> from x.y.1.219</div>
<div><br>
</div>
<br>
</div>
<div>
<div>HOSTNAME# ^[[53;211R</div>
<div>HOSTNAME# </div>
<div><br>
</div>
... Curiously the problem is not widespread. ~1% of my environment and after talking with a college (who's running the latest version of rancid - he reported the problem to me) it appears to be switch version dependant as only some specific versions of code.
He confirmed by upgrading and downgrading code on an HP5412Rzl2 in his environment. I was able to locate 2 more versions of code that had the same error.</div>
<div><br>
</div>
<div>
<div>Aruba JL261A 2930F-24G-PoE+-4SFP Switch</div>
<div>Software revision WC.16.02.0016</div>
<div><br>
</div>
<div>HP J9851A Switch 5412Rzl2</div>
<div>Software revision KB.16.01.0012</div>
</div>
<br>
<p></p>
<p></p>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;"><b>Switch Version RANCID able to poll</b></span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.03.0004 no</span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.03.0003 yes</span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.02.0018 no</span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.02.0016 no</span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.02.0015 yes</span></font></div>
<div style="color: rgb(33, 33, 33); font-size: 15px; margin-top: 0px; margin-bottom: 0px;">
<font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size: 11pt;">16.02.0013 yes</span></font></div>
<br>
<p></p>
<p><br>
</p>
<p>Has anyone encountered this before or know how to remove the artifact? <span style="font-size: 12pt;">Thank you in advance,</span></p>
<p><br>
</p>
<p>Robert</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma; font-size:13px">
<div>
<div>
<p style="font-family:Tahoma; font-size:13px"></p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p>Robert Remsik</p>
<p>ACNS</p>
<p>Desk Phone: 970 491 7120</p>
<p>Robert.Remsik@colostate.edu</p>
<p style="font-family:Tahoma; font-size:13px"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>