<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div><br>Am 21.03.2018 um 20:43 schrieb Lauri Haveri <<a href="mailto:lauri.haveri@alsocloudsolutions.fi">lauri.haveri@alsocloudsolutions.fi</a>>:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Consolas",serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="FI">Hello all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoPlainText">I am setting up a test enviroment on Ubuntu 16.04 before Rancid will go to a production enviroment.
<br>
<br>
Everytime I run Rancid I get the following error:<br>
<br>
“Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/rancid/junos.pm line 135<o:p></o:p></p>
<p class="MsoPlainText">Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/rancid/junos.pm line 140<o:p></o:p></p>
<p class="MsoPlainText">00003-test-fw01: missed cmd(s): show configuration, show version invoke-on other-routing-engine, show system core-dumps, show version detail<o:p></o:p></p>
<p class="MsoPlainText">00003-test-fw01: End of run not foud<o:p></o:p></p>
<p class="MsoPlainText"># Error: TIMEOUT reached”<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">When I go the the part that the log (/usr/share/perl5/rancid/junos.pm) tells me, the part is following:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">“$rval = {$commands{$cmd}}{$INPUT, $OUTPUT, $cmd};<o:p></o:p></p>
<p class="MsoPlainText">delete($commands{$cmd});<o:p></o:p></p>
<p class="MsoPlainText">if {$rval == -1} { // this is the line 135<o:p></o:p></p>
<p class="MsoPlainText"> $clean_run = 0;<o:p></o:p></p>
<p class="MsoPlainText"> last TOP;<o:p></o:p></p>
<p class="MsoPlainText">}<o:p></o:p></p>
<p class="MsoPlainText">if (/>\s*quit/){ // this is line 140<o:p></o:p></p>
<p class="MsoPlainText">$clean_run=1;<o:p></o:p></p>
<p class="MsoPlainText">last;<o:p></o:p></p>
<p class="MsoPlainText">}”<o:p></o:p></p>
<p class="MsoNormal"><br>
The command I am using to run Rancid is:<br>
<span style="font-family:"Times New Roman",serif">“</span>sudo su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid<span style="font-family:"Times New Roman",serif">”</span><br>
<br>
Could you please help me? </p></div></div></blockquote><div><br></div>You havent told us what version of rancid nor from where you retrieved it. If its not 3.7, please start there. If it already is, but it is a ubuntu package, please try an install from source. <div><div><br><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<br>
Lauri<o:p></o:p></p>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Rancid-discuss mailing list</span><br><span><a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a></span><br><span><a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></span></div></blockquote></div></div></body></html>