<div dir="ltr"><div><div>Hi Chris,<br><br></div>I added following lines in the "rancid.types.base " otherwise there is just a reference of enterasys to rivrancid.<br><br>enterasys;script;xrancid<br>enterasys;login;xlogin<br>enterasys;command;enterasys::ShowVersion;show version<br>enterasys;command;enterasys::WriteTerm;show config<br><br></div>Running in debug mode:<br><br>[rancid@rancid ~/etc]$ rancid -d -t enterasys cal3-n7<br>loadtype: device type enterasys<br>loadtype: found device type enterasys in /opt/rancid/etc/rancid.types.base<br>loadtype: undefined function in enterasys: enterasys::ShowVersion<br>Couldn't load device type spec for enterasys<br><br><div>I am not sure why it is complaining because xrancid does have this function defined:<br></div><div><br></div><div># This routine parses "show version"<br>sub ShowVersion {<br> print STDERR " In ShowVersion: $_" if ($debug);</div><div><br></div><div>And in the main routine:</div><div><br></div><div># Main<br>@commandtable = (<br> {'show version' => 'ShowVersion'},<br>### {'show memory' => 'ShowMemory'},<br>### {'show diag' => 'ShowDiag'},<br>### {'show switch' => 'ShowSwitch'},<br>### {'show slot' => 'ShowSlot'},<br># way too confusing {'show configuration detail' => 'WriteTerm'},<br> {'show config' => 'WriteTerm'},<br>);<br></div><div><br></div><div>Trying rivrancid also complains about no commands:</div><div><br></div><div>[rancid@rancid ~]$ rivrancid -d cal3-n7<br>executing rivlogin -t 90 -c"system show uptime;system show version;system show hardware;system show active-config" cal3-n7<br>cal3-n7: missed cmd(s): all commands<br>cal3-n7: End of run not found<br>cal3-n7: clean_run is false<br>!</div><div><br></div><div>Thanks</div><div>-Azher</div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris <span dir="ltr"><<a href="mailto:cgauthier@comscore.com" target="_blank">cgauthier@comscore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-5911183229544688557WordSection1">
<p class="MsoNormal">I would take a look at the rancid types file to make sure it’s running the commands you need. It seems like it’s throwing up in the very beginning of its run.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">There are several emails in the list on how to get into a “debugging” mode if you’re not already familiar. That will help completely isolate the issue.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">--Chris<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="white-space:nowrap"><table style="width:100%;font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:10px 0;vertical-align:middle" align="left"><table style="width:100%;font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top" align="left"><table style="font-size:14.67px;color:#f77a0b;font-style:normal;font-weight:400" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top;font-family:Calibri;font-weight:700" align="left">Chris </td><td style="vertical-align:top;font-family:Calibri;font-weight:700" align="left">Gauthier</td><td style="vertical-align:top;color:#444444;font-family:Calibri" align="left"> Senior Network Engineer</td><td style="vertical-align:top;font-family:Calibri" align="left"> | </td><td style="vertical-align:top;color:#444444;font-family:Calibri" align="left">comScore, Inc.</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:3px 0 0;vertical-align:top" align="left"><table style="font-size:14.67px;color:#444444;font-style:normal;font-weight:400" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top;font-family:Calibri" align="left">t +1 <a href="tel:(503)%20331-2704" id="m_-5911183229544688557LPlnk689713" style="text-decoration:none;color:#444444" target="_blank"><strong style="font-weight:400">(503) 331-2704</strong></a></td><td style="vertical-align:top;color:#f77a0b;font-family:Calibri" align="left"> | <br></td><td style="vertical-align:top;font-family:Calibri" align="left"><a href="mailto:cgauthier@comscore.com" id="m_-5911183229544688557LPlnk689713" style="text-decoration:none;color:#444444" target="_blank"><strong style="font-weight:400">cgauthier@comscore.com</strong></a></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td style="vertical-align:top" align="left"><table style="width:100%;font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:2px 0 0;vertical-align:top" align="left"><table style="font-size:14.67px;color:#444444;font-style:normal;font-weight:400" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top;font-family:Calibri" align="left"><a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">317</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">SW</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">Alder</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">Street,</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">Suite</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">700</a></td><td style="vertical-align:top;color:#f77a0b;font-family:Calibri" align="left"> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">|</a> </td><td style="vertical-align:top;font-family:Calibri" align="left"><a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">Portland,</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">OR</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">97204</a> </td><td style="vertical-align:top;font-family:Calibri" align="left"> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">United</a> <a href="https://maps.google.com/?q=317%C2%A0SW%C2%A0Alder%C2%A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2%A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g">States</a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:2px 0 0;vertical-align:top" align="left"><table style="font-size:14.67px;color:#444444;font-style:normal;font-weight:400" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top;font-family:Calibri" align="left"><a href="http://www.comscore.com/" id="m_-5911183229544688557LPlnk689713" style="text-decoration:none;color:#0563c1" target="_blank"><strong style="font-weight:400">comscore.com</strong></a></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="white-space:normal"><td style="vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:10px 0 2px;vertical-align:top" align="left"><table style="font-size:0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:top" align="left"><table style="color:#444444;font-size:10.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:justify;width:500px" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="font-family:Calibri">This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><span style="font-family:remialcxesans"> </span><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">Rancid-discuss <<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@<wbr>shrubbery.net</a>> on behalf of Azher <<a href="mailto:azheramin@gmail.com" target="_blank">azheramin@gmail.com</a>><br>
<b>Date: </b>Thursday, December 28, 2017 at 2:26 PM<br>
<b>To: </b>"<a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a>" <<a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a>><br>
<b>Subject: </b>[rancid] Enterasys Switches help<u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi All,<u></u><u></u></p>
</div>
<p class="MsoNormal">I have a large deployment of different Enterasys switches (S,K,B,C,D,7100). It seems rancid is not happy with these switches somehow.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">clogin to the same device successfully logs into the switch and gives prompt and I can type the commands.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When trying "rancid-run -r cal3-n7", the log file throws this error:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">[rancid@rancid ~/var/logs]$ tail -f extreme.20171228.113653 <u></u>
<u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">starting: Thu Dec 28 11:36:53 PST 2017<br>
<br>
Trying to get all of the configs.<br>
<br>
cal3-n7 xlogin error: Error: Unknown: "terminal"<br>
cal3-n7: missed cmd(s): show version,show config<br>
cal3-n7: End of run not found<br>
#<br>
==============================<wbr>=======<br>
Getting missed routers: round 1.<br>
cal3-n7 xlogin error: Error: Unknown: "terminal"<br>
cal3-n7: missed cmd(s): show version,show config<br>
cal3-n7: End of run not found<br>
#<br>
All routers successfully completed.<br>
<br>
cvs diff: Diffing .<br>
cvs diff: Diffing configs<br>
cvs commit: Examining .<br>
cvs commit: Examining configs<br>
---------------<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Here is the config section:<br>
[rancid@rancid ~/var/extreme]$ more router.db | grep cal3-n7<br>
cal3-n7;enterasys;up<br>
<br>
# Extreme Switches<br>
add user cal3-n7 admin<br>
add autoenable cal3-n7 1<br>
add password cal3-n7 xxxxxxxxxxxx<br>
add method cal3-n7 ssh<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal">I have gone through some of the scripts which are in the mailing list, tried them, but no luck.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any one has experience with Enterasys devices ? Any working scripts would greatly help.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-Azher<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>