[rancid] Re: accessing routers from another router
Mike Ashcraft
mashcraft at omniture.com
Fri Mar 2 17:35:36 UTC 2007
It looks like you still have problems in your .cloginrc file.
Make sure that you can login using clogin/nlogin/jlogin as appropriate to every device with only the hostname as an option. Work through each device, one at a time. You may need to set username, password, autoenable, method and other options (all documented in the .cloginrc file) specifically for each device instead of using wildcards.
For example as the rancid user, the following command should log you in and allow you to run commands on the device:
$ clogin 10.100.16.140
Once this is done for all devices, and they have the right device type in router.db so that they use the right script, you should be set.
Mike
________________________________
From: Aditya Anand [mailto:aanand at uebiz.net]
Sent: Friday, March 02, 2007 10:16 AM
To: Mike Ashcraft
Cc: rancid-discuss at shrubbery.net
Subject: RE: [rancid] Re: accessing routers from another router
I did that and I could go futher and run the command on the router but its still not pulling the configs....here is the logfile....would really appreciate any help....thanks a zillion times in advance.....
Trying to get all of the configs.
10.100.16.140 clogin error: Error: Couldn't login: 10.100.16.140
10.100.16.140: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show
diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all se
c-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 bo
ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,dir /all slavedisk0:,show debug,show idpr
om backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,di
r /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show
redundancy secondary,show running-config,show c7200,dir /all slot1:
10.100.16.140: End of run not found
10.100.16.141 clogin error: Error: Couldn't login: 10.100.16.141
10.100.16.141: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show
diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all se
c-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 bo
ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,dir /all slavedisk0:,show debug,show idpr
om backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,di
r /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show
redundancy secondary,show running-config,show c7200,dir /all slot1:
10.100.16.141: End of run not found
!
10.100.16.3 nlogin error: Error: TIMEOUT reached
10.100.16.3: missed cmd(s): get system,get conf
10.100.16.3: End of run not found
#
10.100.16.2 nlogin error: Error: TIMEOUT reached
10.100.16.2: missed cmd(s): get system,get conf
10.100.16.2: End of run not found
#
10.100.3.201 jlogin error: Error: TIMEOUT reached
10.100.3.201: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firm
ware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show
chassis fpc detail,show chassis environment,show system core-dumps
10.100.3.201: End of run not found
#
10.100.3.202 jlogin error: Error: TIMEOUT reached
10.100.3.202: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firm
ware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show
chassis fpc detail,show chassis environment,show system core-dumps
10.100.3.202: End of run not found
#
10.100.3.204 jlogin error: Error: TIMEOUT reached
10.100.3.204: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firm
ware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show
chassis fpc detail,show chassis environment,show system core-dumps
10.100.3.204: End of run not found
:
________________________________
From: Mike Ashcraft [mailto:mashcraft at omniture.com]
Sent: Friday, March 02, 2007 12:06 PM
To: Aditya Anand
Cc: rancid-discuss at shrubbery.net
Subject: RE: [rancid] Re: accessing routers from another router
You need to set autoenable to 1 in /usr/local/rancid/.cloginrc.
For example:
add autoenable 10.* 1
What you are seeing is that clogin is waiting for a user level prompt in order to request enable mode until it times out.
Mike
________________________________
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Aditya Anand
Sent: Friday, March 02, 2007 9:54 AM
To: groberts at hcis.net
Cc: rancid-discuss at shrubbery.net
Subject: [rancid] Re: accessing routers from another router
See the output of login to a device from the rancid box...
[rancid at netscreen1 ~]$ /usr/local/rancid/bin/clogin -f /usr/local/rancid/.cloginrc -u rancid 10.100.3.3
10.100.3.3
spawn telnet 10.100.3.3
Trying 10.100.3.3...
Connected to 10.100.3.3 (10.100.3.3).
Escape character is '^]'.
User Access Verification
Username: rancid
Password:
SACNCD02#
sh run
Error: TIMEOUT reached
[rancid at netscreen1 ~]$
[rancid at netscreen1 ~]$
[rancid at netscreen1 ~]$
[rancid at netscreen1 ~]$
[rancid at netscreen1 ~]$ sh run
sh: run: No such file or directory
Does not any further.....DOES NOT RUN ANYTHING.........Please advise......
-----Original Message-----
From: Gary Roberts [mailto:groberts at hcis.net]
Sent: Friday, March 02, 2007 11:15 AM
To: Aditya Anand
Subject: Re: [rancid] Re: accessing routers from another router
Trying to get all of the configs.
10.10.100.1 clogin error: Error: Check your passwd for 10.10.100.1
It appears, judging by the second line in the log, that you have an
incorrect password in your /rancid/.cloginrc file
Aditya Anand wrote:
>
> Hi All,
>
> I am having problems setting up rancid. I am doing it for the first
> time , so not much experience with it. Please help. I can login to the
> device from rancid, however cannot pull the configs. It gives error if
> I see the logs......
>
> *PLEASE HELP IF SOMEBODY CAN..................*
>
> Trying to get all of the configs.
>
> 10.10.100.1 clogin error: Error: Check your passwd for 10.10.100.1
>
> 10.10.100.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show
> rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show
> gsr chassis,dir /all sec-nvram:,show di
>
> ag chassis-info,dir /all disk2:,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,admin show env all,show controllers,admin show version,show
> diagbus,dir /all slavedisk0:,show debug,show idprom
>
> backplane,dir /all bootflash:,dir /all sec-slot0:,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,admin show variables boot,show re
>
> dundancy secondary,show running-config,show c7200,dir /all slot1:
>
> 10.10.100.1: End of run not found
>
> !
>
> 10.10.1.11 clogin error: Error: Check your passwd for 10.10.1.11
>
> 10.10.1.11: missed cmd(s): admin show diag,dir /all slavedisk2:,show
> rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show
> gsr chassis,dir /all sec-nvram:,show dia
>
> g chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe
> version,dir /all slaveslot2:,dir /all disk0:,show install active,show
> bootvar,dir /all slaveslot0:,dir /all sec-s
>
> lot1:,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,admin
> show env all,show controllers,admin show version,show diagbus,dir /all
> slavedisk0:,show debug,show idprom
>
> backplane,dir /all bootflash:,dir /all sec-slot0:,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,admin show variables boot,show red
>
> undancy secondary,show running-config,show c7200,dir /all slot1:
>
> 10.10.1.11: End of run not found
>
> !
>
> 10.10.64.175 nlogin error: Error: Check your passwd for 10.10.64.175
>
> 10.10.64.175: missed cmd(s): get system,get conf
>
> 10.10.64.175: End of run not found
>
> #
>
> 10.10.1.152 nlogin error: Error: TIMEOUT reached
>
> 10.10.1.152: missed cmd(s): get system,get conf
>
> 10.10.1.152: End of run not found
>
> 10.10.64.146 nlogin error: Error: TIMEOUT reached
>
> 10.10.64.146: missed cmd(s): get system,get conf
>
> 10.10.64.146: End of run not found
>
> #
>
> #
>
> 10.10.1.183 nlogin error: Error: TIMEOUT reached
>
> 10.10.1.183: missed cmd(s): get system,get conf
>
> 10.10.1.183: End of run not found
>
> #
>
> 10.100.16.140 clogin error: Error: Couldn't login: 10.100.16.140
>
> 10.100.16.140: missed cmd(s): admin show diag,dir /all
> slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir
> /all disk1:,show gsr chassis,dir /all sec-nvram:,show
>
> diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe
> version,dir /all slaveslot2:,dir /all disk0:,show install active,show
> bootvar,dir /all slaveslot0:,dir /all se
>
> c-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 bo
>
> ot,show inventory raw,dir /all slavedisk1:,show env all,show
> module,admin show env all,show controllers,admin show version,show
> diagbus,dir /all slavedisk0:,show debug,show idpr
>
> om backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all
> sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all
> slot2:,dir /all harddisk:,dir /all slot0:,di
>
> r /all sup-microcode:,show vlan,dir /all slavebootflash:,show
> controllers cbus,dir /all slaveslot1:,dir /all nvram:,show
> version,show vlan-switch,admin show variables boot,show
>
> redundancy secondary,show running-config,show c7200,dir /all slot1:
>
> ------------------------------------------------------------------------
>
> *From:* rancid-discuss-bounces at shrubbery.net
> [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Boštjan Fele
> *Sent:* Tuesday, February 27, 2007 11:21 PM
> *To:* rancid-discuss at shrubbery.net
> *Subject:* [rancid] accessing routers from another router
>
> Hi everyone,
>
> I need to collect the config from routers that are not directly
> reachable by the host that rancid runs on. I can ssh to the first
> router, then telnet to the ones that I need the config from.
>
> Was searching mailing list and found two threads but none of them
> works for me.
>
> http://www.shrubbery.net/pipermail/rancid-discuss/2004-November/000905.html
>
> http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html
>
> Does anybody have implemented hop-by-hop accessing to the routers?
>
> Bostjan
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070302/93d66220/attachment.html
More information about the Rancid-discuss
mailing list