[rancid] Enterasys Switches help

Azher azheramin at gmail.com
Fri Dec 29 02:08:57 UTC 2017


Hi Chris,

I added following lines in the "rancid.types.base " otherwise there is just
a reference of enterasys to rivrancid.

enterasys;script;xrancid
enterasys;login;xlogin
enterasys;command;enterasys::ShowVersion;show version
enterasys;command;enterasys::WriteTerm;show config

Running in debug mode:

[rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7
loadtype: device type enterasys
loadtype: found device type enterasys in /opt/rancid/etc/rancid.types.base
loadtype: undefined function in enterasys: enterasys::ShowVersion
Couldn't load device type spec for enterasys

I am not sure why it is complaining because xrancid does have this function
defined:

# This routine parses "show version"
sub ShowVersion {
    print STDERR "    In ShowVersion: $_" if ($debug);

And in the main routine:

# Main
@commandtable = (
        {'show version'                 => 'ShowVersion'},
###     {'show memory'                  => 'ShowMemory'},
###     {'show diag'                    => 'ShowDiag'},
###     {'show switch'                  => 'ShowSwitch'},
###     {'show slot'                    => 'ShowSlot'},
# way too confusing     {'show configuration detail'    => 'WriteTerm'},
        {'show config'                  => 'WriteTerm'},
);

Trying rivrancid also complains about no commands:

[rancid at rancid ~]$ rivrancid -d cal3-n7
executing rivlogin -t 90 -c"system show uptime;system show version;system
show hardware;system show active-config" cal3-n7
cal3-n7: missed cmd(s): all commands
cal3-n7: End of run not found
cal3-n7: clean_run is false
!

Thanks
-Azher




On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris <cgauthier at comscore.com>
wrote:

> 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.
>
>
>
> 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.
>
>
>
> --Chris
>
>
>
>
> Chris  Gauthier  Senior Network Engineer  |  comScore, Inc.
> t +1 *(503) 331-2704* <(503)%20331-2704>  |
> *cgauthier at comscore.com* <cgauthier at comscore.com>
> 317
> <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
> <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
> <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,
> <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
> <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
> <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>
>  |
> <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,
> <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
> <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
> <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
> <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
> <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>
> *comscore.com* <http://www.comscore.com/>
> ​​​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.
>
>
> *From: *Rancid-discuss <rancid-discuss-bounces at shrubbery.net> on behalf
> of Azher <azheramin at gmail.com>
> *Date: *Thursday, December 28, 2017 at 2:26 PM
> *To: *"rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
> *Subject: *[rancid] Enterasys Switches help
>
>
>
> Hi All,
>
> 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.
>
>
>
> clogin to the same device successfully logs into the switch and gives
> prompt and I can type the commands.
>
>
>
> When trying "rancid-run -r cal3-n7", the log file throws this error:
>
>
>
> [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653
>
> starting: Thu Dec 28 11:36:53 PST 2017
>
> Trying to get all of the configs.
>
> cal3-n7 xlogin error: Error: Unknown: "terminal"
> cal3-n7: missed cmd(s): show version,show config
> cal3-n7: End of run not found
> #
> =====================================
> Getting missed routers: round 1.
> cal3-n7 xlogin error: Error: Unknown: "terminal"
> cal3-n7: missed cmd(s): show version,show config
> cal3-n7: End of run not found
> #
> All routers successfully completed.
>
> cvs diff: Diffing .
> cvs diff: Diffing configs
> cvs commit: Examining .
> cvs commit: Examining configs
> ---------------
>
> Here is the config section:
> [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7
> cal3-n7;enterasys;up
>
> # Extreme Switches
> add user cal3-n7 admin
> add autoenable cal3-n7 1
> add password cal3-n7 xxxxxxxxxxxx
> add method cal3-n7 ssh
>
> I have gone through some of the scripts which are in the mailing list,
> tried them, but no luck.
>
>
>
> Any one has experience with Enterasys devices ? Any working scripts would
> greatly help.
>
>
>
>
>
> Thanks
>
> -Azher
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171228/9ff24244/attachment.html>


More information about the Rancid-discuss mailing list