[rancid] Release Authorised RANCID Email Issue
Gilmour, Scott
sgilmour at enterasys.com
Thu Apr 11 14:38:33 UTC 2013
Hi,
When I run bin/clogin 192.168.150.1 I can log into my Enterasys Switch.
Since I am using an Enterasys Switch I should be using rivlogin since this
is what rancid-run will use for my vendor.
But when I run rivlogin I get:
$ bin/rivlogin 192.168.150.1
192.168.150.1
ERROR: no enable password found for 192.168.150.1 in
/usr/local/rancid/.cloginrc.
$
My Understanding if I do add autoenable 192.168.150.1 1 then the 1 would
tell the script not to use the enable password. Or is there something in
the script I need to change?
When I finally run the rancid-run I will edited the rivlogin script to do
just a show config or show config all.
# Rancid .cloginrc setup
add user 192.168.150.1 tacacssu
add password 192.168.150.1 tacacs
add autoenable 192.168.150.1 1
add method 192.168.150.1 ssh
Thanks
Scott
On Fri, Apr 5, 2013 at 12:00 PM, Marito ... <me_gogorza at hotmail.com> wrote:
> Scott,
>
> Please check in your router.db which vendor you setup. As per your log
> file , the script is trying to execute "system show XXXX", while the rancid
> script executes "show XXXX".
>
> I think you are using the rivrancid/rivlogin scripts for this
> devices. Instead of using clogin, try rivlogin -c 'system show XXXX'
> 192.168.150.1 (where XXXX is your comand)
>
> Regards.
> Mario
>
> ------------------------------
> Date: Fri, 5 Apr 2013 10:28:11 -0400
> From: sgilmour at enterasys.com
> To: rwest at zyedge.com
> CC: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Release Authorised RANCID Email Issue
>
> Ryan,
> Here is the output:
>
> $ bin/rancid -d 192.168.150.1
> executing clogin -t 90 -c"show version;show redundancy secondary;show
> idprom backplane;show install active;show env all;show rsp
> chassis-info;show gsr chassis;show diag chassis-info;show boot;show
> bootvar;show variables boot;show flash;dir /all nvram:;dir /all
> bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all
> disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all
> harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all
> sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all
> slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all
> slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all
> slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all
> sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all
> sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show
> controllers;show config;show controllers cbus;show diagbus;show diag;show
> capture;show module;show spe version;show c7200;show inventory raw;show vtp
> status;show vlan;show vlan-switch;show debug;show shun;more
> system:running-config;show running-config view full;show
> running-config;show config;write term" 192.168.150.1
> sh: 1: clogin: not found
> 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp
> chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all
> disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all
> disk2:,show running-config view full,dir /all sec-bootflash:,show spe
> version,dir /all slaveslot2:,dir /all disk0:,show install active,show
> bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir
> /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
> slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
> boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
> module,show shun,show controllers,show diagbus,more
> system:running-config,dir /all slavedisk0:,show debug,show idprom
> backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all
> sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir
> /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
> /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
> cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
> vlan-switch,show redundancy secondary,show running-config,show c7200,dir
> /all slot1:
> 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp
> chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all
> disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all
> disk2:,show running-config view full,dir /all sec-bootflash:,show spe
> version,dir /all slaveslot2:,dir /all disk0:,show install active,show
> bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir
> /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
> slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
> boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
> module,show shun,show controllers,show diagbus,more
> system:running-config,dir /all slavedisk0:,show debug,show idprom
> backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all
> sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir
> /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
> /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
> cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
> vlan-switch,show redundancy secondary,show running-config,show c7200,dir
> /all slot1:
> 192.168.150.1: End of run not found
> 192.168.150.1: End of run not found
> !
> you have mail
> $
>
>
> Starting rancid-run
> bin/rancid-run
> /usr/local/rancid/var/logs/networking.20130405.102327
>
> starting: Fri Apr 5 10:23:27 EDT 2013
>
>
>
> Trying to get all of the configs.
> 192.168.200.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.1: End of run not found
> 192.168.150.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.150.1: End of run not found
> 192.168.200.4: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.4: End of run not found
> !
> !
> !
> =====================================
> Getting missed routers: round 1.
> 192.168.200.4: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.4: End of run not found
> 192.168.200.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.1: End of run not found
> !
> 192.168.150.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.150.1: End of run not found
> !
> !
> =====================================
> Getting missed routers: round 2.
> 192.168.150.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.150.1: End of run not found
> 192.168.200.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.1: End of run not found
> 192.168.200.4: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.4: End of run not found
> !
> !
> !
> =====================================
> Getting missed routers: round 3.
> 192.168.150.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.150.1: End of run not found
> 192.168.200.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.1: End of run not found
> 192.168.200.4: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.4: End of run not found
> !
> !
> !
> =====================================
> Getting missed routers: round 4.
> 192.168.200.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.1: End of run not found
> 192.168.200.4: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.200.4: End of run not found
> !
> 192.168.150.1: missed cmd(s): system show hardware,system show
> version,system show active-config,system show uptime
> 192.168.150.1: End of run not found
> !
> !
>
> cvs diff: Diffing .
> cvs diff: Diffing configs
> cvs commit: Examining .
> cvs commit: Examining configs
>
> ending: Fri Apr 5 10:23:28 EDT 2013
>
>
>
> On Fri, Apr 5, 2013 at 9:37 AM, Ryan West <rwest at zyedge.com> wrote:
>
> On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote:
> > Subject: Re: [rancid] Release Authorised RANCID Email Issue
> >
> > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1
> > and that logs in without any issue.
> > If I do a bin/rancid-run that is where my issue is occurring. I am
> > debugging the script to see if there is something I need to edit in the
> script.
> >
> Try rancid -d 192.168.150.1 and post that. What's in your logs when you
> try rancid-run?
>
>
>
>
> --
>
> Scott Gilmour | SQA Engineer
>
> Enterasys Networks | A Siemens Enterprise Communications Company
>
> Office: (603) 952-5924
>
> Email: sgilmour at enterasys.com
>
> _______________________________________________ Rancid-discuss mailing
> list Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
--
Scott Gilmour | SQA Engineer
Enterasys Networks | A Siemens Enterprise Communications Company
Office: (603) 952-5924
Email: sgilmour at enterasys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130411/2f424fd9/attachment.html>
More information about the Rancid-discuss
mailing list