<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">> So this got me looking for how to do debug output per-host<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you’re using Linux, the command is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">NOPIPE=yes rancid -d -t <type> <devicename><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This will generate two files:<o:p></o:p></p>
<p class="MsoNormal">.new<o:p></o:p></p>
<p class="MsoNormal">.raw<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">.new is the parsed output<o:p></o:p></p>
<p class="MsoNormal">.raw is pure log of the session (ie, it even captures non-printing characters).  I believe it’s only dumped if you set both NOPIPE and -d.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve used the .raw output on many occasions.  At the moment I’m even troubleshooting a device CPU issue that rancid tripped on that I wouldn’t have found but for this; “clogin -c<command-set> <device>” was even working fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">weylin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Michael Newton <mnewton@pofp.com><br>
<b>Date: </b>Monday, June 10, 2019 at 11:25 AM<br>
<b>To: </b>Vacheslav Zouhairy <m_zouhairy@skno.by><br>
<b>Cc: </b><rancid-discuss@shrubbery.net><br>
<b>Subject: </b>Re: [rancid] Unable to figure out "end of run not found"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting:
<a href="https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html">
https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html</a> And that made me notice that my router.db entry was corrupt (wrong device type.)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So, typical user error. Thanks for (indirectly) getting me in the right direction though!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Mike<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy <<a href="mailto:m_zouhairy@skno.by">m_zouhairy@skno.by</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Is there any bandwidth hog on those switches by any chance?<br>
<br>
On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:<br>
> Hi all, we manage about 200-300 Brocade ICX switches across a number<br>
> of locations. All but two are being successfully polled. The two in<br>
> question (same firmware and a similar config to the others)<br>
> consistently show "end of run not found" when run as part of the cron<br>
> job. But, when run manually for troubleshooting, everything seems to<br>
> work.<br>
> <br>
> `sudo -u rancid flogin switchname` works fine and logs me into the<br>
> switch.<br>
> <br>
> `sudo -u rancid flogin -c 'show version;show clock' switchname`<br>
> likewise works fine. Logs in, runs the commands, and logs out.<br>
> <br>
> `sudo -u rancid rancid -t foundry -d switchname` runs through<br>
> everything perfectly. The switchname.new file has the expected<br>
> output.<br>
> <br>
> Yet the log for the automated process consistently shows this:<br>
> <br>
> switchname: End of run not found<br>
> end<br>
> <br>
> Is there anything else I can do to troubleshoot this? Thanks in<br>
> advance!<br>
> <br>
> Mike<br>
> _______________________________________________<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" target="_blank">
http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
<br>
<br>
_______________________________________________<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" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>