<div dir="ltr">Hi Heasley,<br><br><div>[rancid@rancid ~]$ rivrancid -d -t enterasys cal-7100-1<br>executing rivlogin -t 90 -c"system show uptime;system show version;system show hardware;system show active-config" cal-7100-1<br>cal-7100-1: missed cmd(s): all commands<br>cal-7100-1: End of run not found<br>cal-7100-1: clean_run is false<br></div><div><br></div><div>These commands starting with "system" does not work on the Enterasys switches. <br></div><div><br></div><div>Thanks</div><div>-Azher<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 2, 2018 at 3:27 PM, heasley <span dir="ltr"><<a href="mailto:heas@shrubbery.net" target="_blank">heas@shrubbery.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher:<br>
<span class="">> Hi Chris,<br>
><br>
> I added following lines in the "rancid.types.base " otherwise there is just<br>
> a reference of enterasys to rivrancid.<br>
><br>
> enterasys;script;xrancid<br>
> enterasys;login;xlogin<br>
> enterasys;command;enterasys::<wbr>ShowVersion;show version<br>
> enterasys;command;enterasys::<wbr>WriteTerm;show config<br>
<br>
</span>you should not need that; there is already an entry in rancid.types.base<br>
for this device type - use that.<br>
<div><div class="h5"><br>
> 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.<wbr>base<br>
> loadtype: undefined function in enterasys: enterasys::ShowVersion<br>
> Couldn't load device type spec for enterasys<br>
><br>
> I am not sure why it is complaining because xrancid does have this function<br>
> defined:<br>
><br>
> # This routine parses "show version"<br>
> sub ShowVersion {<br>
> print STDERR " In ShowVersion: $_" if ($debug);<br>
><br>
> And in the main routine:<br>
><br>
> # 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>
><br>
> Trying rivrancid also complains about no commands:<br>
><br>
> [rancid@rancid ~]$ rivrancid -d cal3-n7<br>
> executing rivlogin -t 90 -c"system show uptime;system show version;system<br>
> show hardware;system show active-config" cal3-n7<br>
<br>
</div></div>manually run the rivlogin command that is there to see if there is a<br>
failure in that login script.<br>
<span class=""><br>
> cal3-n7: missed cmd(s): all commands<br>
> cal3-n7: End of run not found<br>
> cal3-n7: clean_run is false<br>
> !<br>
><br>
> Thanks<br>
> -Azher<br>
><br>
><br>
><br>
><br>
> On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris <<a href="mailto:cgauthier@comscore.com">cgauthier@comscore.com</a>><br>
> wrote:<br>
><br>
> > I would take a look at the rancid types file to make sure it’s running the<br>
> > commands you need. It seems like it’s throwing up in the very beginning of<br>
> > its run.<br>
> ><br>
> ><br>
> ><br>
> > There are several emails in the list on how to get into a “debugging” mode<br>
> > if you’re not already familiar. That will help completely isolate the<br>
> > issue.<br>
> ><br>
> ><br>
> ><br>
> > --Chris<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Chris Gauthier Senior Network Engineer | comScore, Inc.<br>
</span>> > t +1 *<a href="tel:%28503%29%20331-2704" value="+15033312704">(503) 331-2704</a>* <(503)%20331-2704> |<br>
> > *<a href="mailto:cgauthier@comscore.com">cgauthier@comscore.com</a>* <<a href="mailto:cgauthier@comscore.com">cgauthier@comscore.com</a>><br>
> > 317<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > SW<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > Alder<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > Street,<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > Suite<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > 700<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > |<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > Portland,<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > OR<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > 97204<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > United<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > States<br>
> > <<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" rel="noreferrer" target="_blank">https://maps.google.com/?q=<wbr>317%C2%A0SW%C2%A0Alder%C2%<wbr>A0Street,%C2%A0Suite%C2%A0700%<wbr>C2%A0%7C%C2%A0Portland,%C2%<wbr>A0OR%C2%A097204%C2%A0%C2%<wbr>A0United%C2%A0States&entry=<wbr>gmail&source=g</a>><br>
> > *<a href="http://comscore.com" rel="noreferrer" target="_blank">comscore.com</a>* <<a href="http://www.comscore.com/" rel="noreferrer" target="_blank">http://www.comscore.com/</a>><br>
<span class="">> > This e-mail (including any attachments) may contain information that is<br>
> > private, confidential, or protected by attorney-client or other privilege.<br>
> > If you received this e-mail in error, please delete it from your system and<br>
> > notify sender.<br>
> ><br>
> ><br>
</span>> > *From: *Rancid-discuss <<a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@<wbr>shrubbery.net</a>> on behalf<br>
> > of Azher <<a href="mailto:azheramin@gmail.com">azheramin@gmail.com</a>><br>
> > *Date: *Thursday, December 28, 2017 at 2:26 PM<br>
> > *To: *"<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><wbr>" <<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>><br>
> > *Subject: *[rancid] Enterasys Switches help<br>
<div><div class="h5">> ><br>
> ><br>
> ><br>
> > Hi All,<br>
> ><br>
> > I have a large deployment of different Enterasys switches<br>
> > (S,K,B,C,D,7100). It seems rancid is not happy with these switches somehow.<br>
> ><br>
> ><br>
> ><br>
> > clogin to the same device successfully logs into the switch and gives<br>
> > prompt and I can type the commands.<br>
> ><br>
> ><br>
> ><br>
> > When trying "rancid-run -r cal3-n7", the log file throws this error:<br>
> ><br>
> ><br>
> ><br>
> > [rancid@rancid ~/var/logs]$ tail -f extreme.20171228.113653<br>
> ><br>
> > 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>
> > ---------------<br>
> ><br>
> > 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>
> > I have gone through some of the scripts which are in the mailing list,<br>
> > tried them, but no luck.<br>
> ><br>
> ><br>
> ><br>
> > Any one has experience with Enterasys devices ? Any working scripts would<br>
> > greatly help.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Thanks<br>
> ><br>
> > -Azher<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">http://www.shrubbery.net/<wbr>mailman/listinfo/rancid-<wbr>discuss</a><br>
<br>
</blockquote></div><br></div>