<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<p>I have a few of the edge switches (edgeswitch-X)<br>
</p>
<p>I use this in my etc/rancid.types.conf</p>
<p># Ubiquiti Switches and some radios<br>
ubntsw;script;rancid -t ubntsw<br>
ubntsw;login;ulogin<br>
ubntsw;module;ubnt<br>
ubntsw;inloop;ubnt::inloop<br>
ubntsw;command;ubnt::ShowVersion;show version<br>
ubntsw;command;ubnt::ShowConfig;show configuration<br>
</p>
<p>I have my own ulogin, but it looks like your login that you are
currently using works just fine.</p>
<p>Basically, there are only 2 commands that matter, the show
version and show configuration.</p>
<p>I contributed by lib/rancid/ubnt.pl back a couple of years ago,
but can't remember if it made it in. There may be a more recent
way to do it, but I'm happy to share it.</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 11/6/2018 1:13 PM, Kevin Geil wrote:<br>
</div>
<blockquote type="cite"
cite="mid:C9DD931F00FBFC49B2895B0B13C9250BFDFA699F@ORDAExchange-01.orda.local">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi, I’m trying to get RANCID to poll my
ubiquiti edge switches, and am a bit perplexed. From what
I’ve found online in other mailing lists, it is possible to
use RANCID to poll these, using the edgemax script. So far,
I’ve set up the router.db with <device-type> edgemax.
When I invoke rancid-run, nothing much happens, and when I
look in the log, I see:<o:p></o:p></p>
<p class="MsoNormal">=====================================<o:p></o:p></p>
<p class="MsoNormal">Getting missed routers: round 2.<o:p></o:p></p>
<p class="MsoNormal">myEdgeSwitch: End of run not found<o:p></o:p></p>
<p class="MsoNormal">!<o:p></o:p></p>
<p class="MsoNormal">=====================================<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So far, I have tried adding my own device
type by copying the “EdgeMax” device config in
rancid.types.base to rancid.types.conf, and calling it
EdgeSwitch (which is the right thing to do right? Despite the
dire warnings at the top of each file, it’s not entirely clear
how to do this, as they both warn against editing the file).
I tried to use ulogin instead of clogin, with the same result.<br>
I can successfully authenticate to the switches by using both
clogin and ulogin.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
What is now really confusing is that I don’t know what script
RANCID should be running. In rancid.types.base, the edgemax
config looks like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">## UBNT EdgeMAX<o:p></o:p></p>
<p class="MsoNormal">edgemax;script;rancid -t edgemax<o:p></o:p></p>
<p class="MsoNormal">edgemax;login;clogin<o:p></o:p></p>
<p class="MsoNormal">edgemax;module;edgemax<o:p></o:p></p>
<p class="MsoNormal">…more commands…<o:p></o:p></p>
<p class="MsoNormal"><br>
What confuses me is that there isn’t a script in the bin
directory called edgemax, so I’m not sure what script it
should be running. There IS a file in lib/rancid called
edgemax.pm, but that doesn’t get referenced by the config in
rancid.types.base.<o:p></o:p></p>
<p class="MsoNormal"><br>
If someone could help clarify <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1. What “end of run not found” means to me,
and <o:p></o:p></p>
<p class="MsoNormal">2. What script the edgemax config should be
running, I might be able to figure this all out.
<o:p></o:p></p>
<p class="MsoNormal"><br>
Thank you.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kevin<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<table>
<tbody>
<tr>
<td style="padding-left: 20px" width="90%">Doug Hughes<br>
Keystone NAP<br>
Fairless Hills, PA<br>
1.844.KEYBLOCK (539.2562)</td>
<td style="align: right;padding-right: 20px"><img
src="cid:part1.C013F76E.AC2B66DD@keystonenap.com">
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>