Discussion:
[rancid] Rancid - clogin -hangs on a cisco router
Lourdes Llorente
2007-01-22 11:48:55 UTC
Permalink
Hi All...

Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"

Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8

Thanks for your help,
Cheers,



bash-3.00$ ./rancid -d atlrtp02
executing clogin -t 90 -c"admin show version;show version;show redundancy
secondary;show idprom backplane;show install active;admin show env
all;show env all;show rsp chassis-info;show gsr chassis;show diag
chassis-info;show boot;show bootvar;admin show variables boot;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-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 controllers cbus;show diagbus;admin show
diag;show diag;show module;show spe version;show c7200;show inventory
raw;show vtp status;show vlan;show vlan-switch;show debug;show
running-config;write term" atlrtp02
PROMPT MATCH: ATLRTP02#
HIT COMMAND:ATLRTP02#admin show version
In ShowVersion: ATLRTP02#admin show version
HIT COMMAND:ATLRTP02#show version
In ShowVersion: ATLRTP02#show version
TYPE = 7200
HIT COMMAND:ATLRTP02#show redundancy secondary
In ShowRedundancy: ATLRTP02#show redundancy secondary
HIT COMMAND:ATLRTP02#show idprom backplane
In ShowIDprom: ATLRTP02#show idprom backplane
HIT COMMAND:ATLRTP02#show install active
In ShowInstallActive: ATLRTP02#show install active
HIT COMMAND:ATLRTP02#admin show env all
In ShowEnv: ATLRTP02#admin show env all
HIT COMMAND:ATLRTP02#show env all
In ShowEnv: ATLRTP02#show env all
HIT COMMAND:ATLRTP02#show rsp chassis-info
In ShowRSP: ATLRTP02#show rsp chassis-info
HIT COMMAND:ATLRTP02#show gsr chassis
In ShowGSR: ATLRTP02#show gsr chassis
HIT COMMAND:ATLRTP02#show diag chassis-info
In ShowGSR: ATLRTP02#show diag chassis-info
HIT COMMAND:ATLRTP02#show boot
In ShowBoot: ATLRTP02#show boot
HIT COMMAND:ATLRTP02#show bootvar
In ShowBoot: ATLRTP02#show bootvar
HIT COMMAND:ATLRTP02#admin show variables boot
In ShowBoot: ATLRTP02#admin show variables boot
HIT COMMAND:ATLRTP02#show variables boot
In ShowBoot: ATLRTP02#show variables boot
HIT COMMAND:ATLRTP02#show flash
In ShowFlash: ATLRTP02#show flash
HIT COMMAND:ATLRTP02#dir /all nvram:
In DirSlotN: ATLRTP02#dir /all nvram:
HIT COMMAND:ATLRTP02#dir /all bootflash:
In DirSlotN: ATLRTP02#dir /all bootflash:
HIT COMMAND:ATLRTP02#dir /all slot0:
In DirSlotN: ATLRTP02#dir /all slot0:
HIT COMMAND:ATLRTP02#dir /all disk0:
In DirSlotN: ATLRTP02#dir /all disk0:
HIT COMMAND:ATLRTP02#dir /all slot1:
In DirSlotN: ATLRTP02#dir /all slot1:
HIT COMMAND:ATLRTP02#dir /all disk1:
In DirSlotN: ATLRTP02#dir /all disk1:
HIT COMMAND:ATLRTP02#dir /all slot2:
In DirSlotN: ATLRTP02#dir /all slot2:
HIT COMMAND:ATLRTP02#dir /all disk2:
In DirSlotN: ATLRTP02#dir /all disk2:
HIT COMMAND:ATLRTP02#dir /all harddisk:
In DirSlotN: ATLRTP02#dir /all harddisk:
HIT COMMAND:ATLRTP02#dir /all harddiska:
In DirSlotN: ATLRTP02#dir /all harddiska:
HIT COMMAND:ATLRTP02#dir /all harddiskb:
In DirSlotN: ATLRTP02#dir /all harddiskb:
HIT COMMAND:ATLRTP02#dir /all sup-bootflash:
In DirSlotN: ATLRTP02#dir /all sup-bootflash:
HIT COMMAND:ATLRTP02#dir /all sup-microcode:
In DirSlotN: ATLRTP02#dir /all sup-microcode:
HIT COMMAND:ATLRTP02#dir /all slavenvram:
In DirSlotN: ATLRTP02#dir /all slavenvram:
HIT COMMAND:ATLRTP02#dir /all slavebootflash:
In DirSlotN: ATLRTP02#dir /all slavebootflash:
HIT COMMAND:ATLRTP02#dir /all slaveslot0:
In DirSlotN: ATLRTP02#dir /all slaveslot0:
HIT COMMAND:ATLRTP02#dir /all slavedisk0:
In DirSlotN: ATLRTP02#dir /all slavedisk0:
HIT COMMAND:ATLRTP02#dir /all slaveslot1:
In DirSlotN: ATLRTP02#dir /all slaveslot1:
HIT COMMAND:ATLRTP02#dir /all slavedisk1:
In DirSlotN: ATLRTP02#dir /all slavedisk1:
HIT COMMAND:ATLRTP02#dir /all slaveslot2:
In DirSlotN: ATLRTP02#dir /all slaveslot2:
HIT COMMAND:ATLRTP02#dir /all slavedisk2:
In DirSlotN: ATLRTP02#dir /all slavedisk2:
HIT COMMAND:ATLRTP02#dir /all slavesup-bootflash:
In DirSlotN: ATLRTP02#dir /all slavesup-bootflash:
HIT COMMAND:ATLRTP02#dir /all sec-nvram:
In DirSlotN: ATLRTP02#dir /all sec-nvram:
HIT COMMAND:ATLRTP02#dir /all sec-bootflash:
In DirSlotN: ATLRTP02#dir /all sec-bootflash:
HIT COMMAND:ATLRTP02#dir /all sec-slot0:
In DirSlotN: ATLRTP02#dir /all sec-slot0:
HIT COMMAND:ATLRTP02#dir /all sec-disk0:
In DirSlotN: ATLRTP02#dir /all sec-disk0:
HIT COMMAND:ATLRTP02#dir /all sec-slot1:
In DirSlotN: ATLRTP02#dir /all sec-slot1:
HIT COMMAND:ATLRTP02#dir /all sec-disk1:
In DirSlotN: ATLRTP02#dir /all sec-disk1:
HIT COMMAND:ATLRTP02#dir /all sec-slot2:
In DirSlotN: ATLRTP02#dir /all sec-slot2:
HIT COMMAND:ATLRTP02#dir /all sec-disk2:
In DirSlotN: ATLRTP02#dir /all sec-disk2:
HIT COMMAND:ATLRTP02#show controllers
In ShowContAll: ATLRTP02#show controllers
HIT COMMAND:ATLRTP02#show controllers cbus
In ShowContCbus: ATLRTP02#show controllers cbus
HIT COMMAND:ATLRTP02#show diagbus
In ShowDiagbus: ATLRTP02#show diagbus
HIT COMMAND:ATLRTP02#admin show diag
In ShowDiag: ATLRTP02#admin show diag
HIT COMMAND:ATLRTP02#show diag
In ShowDiag: ATLRTP02#show diag
HIT COMMAND:ATLRTP02#show module
In ShowModule: ATLRTP02#show module
HIT COMMAND:ATLRTP02#show spe version
In ShowSpeVersion: ATLRTP02#show spe version
HIT COMMAND:ATLRTP02#show c7200
In ShowC7200: ATLRTP02#show c7200
HIT COMMAND:ATLRTP02#show inventory raw
In ShowInventory: ATLRTP02#show inventory raw
HIT COMMAND:ATLRTP02#show vtp status
In ShowVTP: ATLRTP02#show vtp status
HIT COMMAND:ATLRTP02#show vlan
In ShowVLAN: ATLRTP02#show vlan
HIT COMMAND:ATLRTP02#show vlan-switch
In ShowVLAN: ATLRTP02#show vlan-switch
HIT COMMAND:ATLRTP02#show debug
In ShowDebug: ATLRTP02#show debug
HIT COMMAND:ATLRTP02#show running-config
In WriteTerm: ATLRTP02#show running-config



The list of processes are:
bash-3.00$ ps -ef | grep rancid
rancid 2675 2672 0 09:30:34 ? 0:01 /usr/local/sbin/sshd -R
rancid 7356 7354 0 11:42:05 pts/4 0:00 telnet atlrtp02
rancid 2678 2677 0 09:30:40 pts/1 0:00 /usr/local/bin/bash
rancid 7352 7271 50 11:42:05 pts/8 6:03 /usr/bin/perl ./rancid -d
atlrtp02
rancid 2677 2675 0 09:30:35 pts/1 0:00 -sh
rancid 7370 7351 0 11:48:24 pts/7 0:00 grep rancid
rancid 7351 7350 0 11:41:16 pts/7 0:00 /usr/local/bin/bash
rancid 7353 7352 0 11:42:05 pts/8 0:00 sh -c clogin -t 90 -c
"admin show version;show version;show redundancy secondar
rancid 7350 7348 0 11:41:13 pts/7 0:00 -sh
rancid 2691 2689 0 09:34:03 pts/2 0:00 -sh
rancid 7354 7353 0 11:42:05 pts/8 0:01 /usr/local/bin/expect --
/usr/local/rancid/bin/clogin -t 90 -c admin show versi
rancid 7270 7268 0 11:10:19 pts/8 0:00 -sh
rancid 7271 7270 0 11:10:23 pts/8 0:00 /usr/local/bin/bash
rancid 2689 2686 0 09:34:03 ? 0:02 /usr/local/sbin/sshd -R
rancid 7348 7345 0 11:41:12 ? 0:00 /usr/local/sbin/sshd -R
rancid 7268 7265 0 11:10:19 ? 0:01 /usr/local/sbin/sshd -R
rancid 2702 2691 0 09:44:25 pts/2 0:00 /usr/local/bin/bash
Justin Shore
2007-01-22 14:47:23 UTC
Permalink
Is the config excessively long or is the router under an unusually high
amount of load? For example I had a 3660 with too little RAM that was
terminating about 1200 ATM PVCs. The config is around 17,000 lines
long. When it started running low on RAM it stopped giving me all of
the output in "show run". Eventually it stopped giving me any output
what-so-ever (shortly before it fell off the network with OSPF ran out
of RAM to operate in). It's a thought.



Justin





________________________________

From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Lourdes
Llorente
Sent: Monday, January 22, 2007 5:49 AM
To: rancid-discuss
Subject: [rancid] Rancid - clogin -hangs on a cisco router




Hi All...

Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"

Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8

Thanks for your help,
Cheers,
Jeremy McCourt
2007-01-23 04:39:54 UTC
Permalink
I had an issue with this recently as well, only every now and then I
would get a complete router config.
For me my issue happened to be a switch port was set to auto-negotiate
and the gateway firewall wasn't, this was causing some major network
slowdowns and rancid would eventually timeout.
Most people turn off autoneg on their switches/NIC's and hardcode it to
100/full (or whatever the max speed on both ends is) on both just to be
on the safe side.
running an scp or a ftp through the environment can give you a good
indication of how fast you end to end connectivity is.

-Jeremy
------------------------------------------------------------------------
Llorente
*Sent:* Monday, January 22, 2007 5:49 AM
*To:* rancid-discuss
*Subject:* [rancid] Rancid - clogin -hangs on a cisco router
Hi All...
Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"
Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8
Thanks for your help,
Cheers,
------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2007-01-23 16:08:45 UTC
Permalink
Post by Jeremy McCourt
I had an issue with this recently as well, only every now and then I
would get a complete router config.
For me my issue happened to be a switch port was set to auto-negotiate
and the gateway firewall wasn't, this was causing some major network
slowdowns and rancid would eventually timeout.
"timeout". that is important; it should not hang. if it is in fact
hanging, have you applied the expect patch for solaris that is linked on
rancid web page?
Post by Jeremy McCourt
Most people turn off autoneg on their switches/NIC's and hardcode it to
100/full (or whatever the max speed on both ends is) on both just to be
on the safe side.
running an scp or a ftp through the environment can give you a good
indication of how fast you end to end connectivity is.
-Jeremy
------------------------------------------------------------------------
Llorente
*Sent:* Monday, January 22, 2007 5:49 AM
*To:* rancid-discuss
*Subject:* [rancid] Rancid - clogin -hangs on a cisco router
Hi All...
Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"
Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8
Thanks for your help,
Cheers,
------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lourdes Llorente
2007-01-23 09:34:08 UTC
Permalink
Thanks for the suggestion..

But connectiviy is there. A ping works pretty well ...Round trip delay is
123 ms.

Cheers,
Lourdes



Jeremy McCourt <***@jeremymccourt.com>
To
Justin Shore <***@sktbcs.com>, rancid-discuss
<rancid-***@shrubbery.net>
cc

bcc

Subject
[rancid] Re: Rancid - clogin -hangs on a cisco router





Jeremy McCourt <***@jeremymccourt.com>
Please respond to ***@jeremymccourt.com
Sent by: rancid-discuss-***@shrubbery.net
01/23/07 05:39 AM


I had an issue with this recently as well, only every now and then I
would get a complete router config.
For me my issue happened to be a switch port was set to auto-negotiate
and the gateway firewall wasn't, this was causing some major network
slowdowns and rancid would eventually timeout.
Most people turn off autoneg on their switches/NIC's and hardcode it to
100/full (or whatever the max speed on both ends is) on both just to be
on the safe side.
running an scp or a ftp through the environment can give you a good
indication of how fast you end to end connectivity is.

-Jeremy
------------------------------------------------------------------------
Llorente
*Sent:* Monday, January 22, 2007 5:49 AM
*To:* rancid-discuss
*Subject:* [rancid] Rancid - clogin -hangs on a cisco router
Hi All...
Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"
Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8
Thanks for your help,
Cheers,
------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Jeremy McCourt
2007-01-23 16:57:56 UTC
Permalink
Lourdes,
Don't use ping, ICMP (ping) packets are so small that they may give
you a misrepresentation of how your network is running, try a real
transfer with FTP, SCP, SFTP, something that will be able to transfer
large amounts of data. Lets say like a 10meg file, when I would try to
transfer it with the slowdown it would take anywhere between 5-10 mins,
I'm currently on wireless, and get about 300KB/sec and takes 35seconds,
wired I can xfer that in under 10 seconds.
if you have access to your switch that the solaris machine is plugged
into check that it is 100/full,
and by using ndd on the solaris box you can set it to 100/full as well.
http://www.brandonhutchinson.com/Solaris_NIC_speed_and_duplex_settings.html
(this page explains how to make the interface changes using ndd)
When I was having my issues, my ping was quick, I was even able to pull
webpages off my server (but sometimes slow), but only once in a while I
would be able to pull a full config off a router, I would see the raw
files in the config directory, they would change size in chunks, and it
would take quite some time.
**you can have it use temp (raw) files by editing the rancid.conf
file, and modify the nopipe setting.
NOPIPE=YES; export NOPIPE
**
-Jeremy
Post by Lourdes Llorente
Thanks for the suggestion..
But connectiviy is there. A ping works pretty well ...Round trip delay
is 123 ms.
Cheers,
Lourdes
To
cc
bcc
Subject
[rancid] Re: Rancid - clogin -hangs on a cisco router
01/23/07 05:39 AM
I had an issue with this recently as well, only every now and then I
would get a complete router config.
For me my issue happened to be a switch port was set to auto-negotiate
and the gateway firewall wasn't, this was causing some major network
slowdowns and rancid would eventually timeout.
Most people turn off autoneg on their switches/NIC's and hardcode it to
100/full (or whatever the max speed on both ends is) on both just to be
on the safe side.
running an scp or a ftp through the environment can give you a good
indication of how fast you end to end connectivity is.
-Jeremy
------------------------------------------------------------------------
Llorente
*Sent:* Monday, January 22, 2007 5:49 AM
*To:* rancid-discuss
*Subject:* [rancid] Rancid - clogin -hangs on a cisco router
Hi All...
Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"
Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8
Thanks for your help,
Cheers,
------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lourdes Llorente
2007-01-23 16:16:13 UTC
Permalink
Hi John,

I tried to applied but I did not suceed compiling it.

Do you know where I could get the expect with the patch applied already
compiled for sparc solaris 8 ?

Thanks,
Lourdes




john heasley <***@shrubbery.net>
To
Jeremy McCourt <***@jeremymccourt.com>
cc
rancid-discuss <rancid-***@shrubbery.net>
bcc

Subject
[rancid] Re: Rancid - clogin -hangs on a cisco router





john heasley <***@shrubbery.net>
Sent by: rancid-discuss-***@shrubbery.net
01/23/07 05:08 PM
Post by Jeremy McCourt
I had an issue with this recently as well, only every now and then I
would get a complete router config.
For me my issue happened to be a switch port was set to auto-negotiate
and the gateway firewall wasn't, this was causing some major network
slowdowns and rancid would eventually timeout.
"timeout". that is important; it should not hang. if it is in fact
hanging, have you applied the expect patch for solaris that is linked on
rancid web page?
Post by Jeremy McCourt
Most people turn off autoneg on their switches/NIC's and hardcode it to
100/full (or whatever the max speed on both ends is) on both just to be
on the safe side.
running an scp or a ftp through the environment can give you a good
indication of how fast you end to end connectivity is.
-Jeremy
------------------------------------------------------------------------
Post by Jeremy McCourt
Post by Justin Shore
Llorente
*Sent:* Monday, January 22, 2007 5:49 AM
*To:* rancid-discuss
*Subject:* [rancid] Rancid - clogin -hangs on a cisco router
Hi All...
Getting a problem with Rancid.
Rancid doesn't dowload the configurations. It hangs with "show running
config"
Any ideas ?
Rancid is: rancid-2.3.2a6
TCL is 8.5a4
Expect is 5.43
Solaris 8
Thanks for your help,
Cheers,
------------------------------------------------------------------------
Post by Jeremy McCourt
Post by Justin Shore
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
A***@o2.com
2007-01-24 08:47:11 UTC
Permalink
Hi All,

this night seems my RANCID run in into trouble, i got this Error messages
for all my groups and every device :

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
cvs commit: Up-to-date check failed for `configs/munacs1'
cvs [commit aborted]: correct above errors first!

Can someone give me a hint what is gone wrong ?

Cheers

Anton



Anton Schweitzer
CNO IP Backoffice
o2 (Germany) GmbH & Co.OHG
Georg Brauchle-Ring 23-25, D-80992 München
Tel +49(0)89-2442-5794
Mobil +49(0)176-23407715
Fax +49(0)89-2442-5632
***@o2.com
Lance
2007-01-24 18:08:52 UTC
Permalink
this is answered in the 3rd question of CVS section of the FAQ.

http://www.shrubbery.net/rancid/FAQ
-------- Original Message --------
Subject: [rancid] CVS Trouble
Date: Wed, January 24, 2007 1:47 am
Hi All,
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
cvs commit: Up-to-date check failed for `configs/munacs1'
cvs [commit aborted]: correct above errors first!
Can someone give me a hint what is gone wrong ?
Cheers
Anton
Anton Schweitzer
CNO IP Backoffice
o2 (Germany) GmbH & Co.OHG
Georg Brauchle-Ring 23-25, D-80992 M�nchen
Tel +49(0)89-2442-5794
Mobil +49(0)176-23407715
Fax +49(0)89-2442-5632
---------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...