Mailing List Archive

Newbie Problems - - Please see below
Hello,
I'm sure this has been answered, but I think I have the problem that is detailed on the main Rancid page... the Expect problem...
Here is info from my logs...
Trying to get all of the configs.
x.x.x.x clogin error: Error: TIMEOUT reached
x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all di
sk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show c
ontrollers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
x.x.x.x: End of run not found
!
y.y.y.y clogin error: Error: TIMEOUT reached
y.y.y.y: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all d
isk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show
controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
y.y.y.y: End of run not found
!
can not find channel named "exp4"
while executing
"close"
("foreach" body line 110)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out prompt.
# Since autoena..."
(file "/usr/local/rancid/bin/clogin" line 559)
x.x.x.x clogin error: Error: TIMEOUT reached
x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all dis
k2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show co
ntrollers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
x.x.x.x: End of run not found

Now, I'm not sure what I need to do in order to fix this, what lines to edit in Expect..
Running Mandrake 9.2 on i586

Your help is appreciated.
Newbie Problems - - Please see below [ In reply to ]
On Tue, Nov 11, 2003 at 11:47:45AM -0800, funraps too wrote:
> I'm sure this has been answered, but I think I have the problem
> that is detailed on the main Rancid page... the Expect problem...

> x.x.x.x clogin error: Error: TIMEOUT reached
> y.y.y.y clogin error: Error: TIMEOUT reached
> x.x.x.x clogin error: Error: TIMEOUT reached

It might be that you are running into problems actually reaching
the router & logging into it. Make sure you can telnet/ssh to the
router and that your passwords are right in your .cloginrc. See if you
can get clogin working first.
--asp
Newbie Problems - - Please see below [ In reply to ]
I can get clogin to work just fine both under the new account I've created and my regular accounts., but the do_diff is giving me the error.
My tacacs logs indicate that the user has logged in but did not execute any commands..

Andrew Partan <asp at partan.com> wrote:
On Tue, Nov 11, 2003 at 11:47:45AM -0800, funraps too wrote:
> I'm sure this has been answered, but I think I have the problem
> that is detailed on the main Rancid page... the Expect problem...

> x.x.x.x clogin error: Error: TIMEOUT reached
> y.y.y.y clogin error: Error: TIMEOUT reached
> x.x.x.x clogin error: Error: TIMEOUT reached

It might be that you are running into problems actually reaching
the router & logging into it. Make sure you can telnet/ssh to the
router and that your passwords are right in your .cloginrc. See if you
can get clogin working first.
--asp
Newbie Problems - - Please see below [ In reply to ]
On Tue, Nov 11, 2003 at 12:18:28PM -0800, funraps too wrote:
> I can get clogin to work just fine both under the new account
> I've created and my regular accounts., but the do_diff is giving
> me the error.

can you do
clogin -c "cmd1;cmd2" router
? if you can't, but clogin works, that may indicate some problem
with clogin recognizing the prompt on the router.
--asp
Newbie Problems - - Please see below [ In reply to ]
Thank you Andrew,
The routers are anywhere from 1600, 1700,2100, 7200 etc....
Here is the output of clogin:
./clogin -c "sh ver;sh log" x.x.x.x
spawn telnet x.x.x.x
Trying x.x.x.x...
Connected to x.x.x.x.xxxxxxx.com (x.x.x.x).
Escape character is '^]'.

User Access Verification
Username: <some_username>
Password:
<hostname>#
Error: TIMEOUT reached


Andrew Partan <asp at partan.com> wrote:
On Tue, Nov 11, 2003 at 12:18:28PM -0800, funraps too wrote:
> I can get clogin to work just fine both under the new account
> I've created and my regular accounts., but the do_diff is giving
> me the error.

can you do
clogin -c "cmd1;cmd2" router
? if you can't, but clogin works, that may indicate some problem
with clogin recognizing the prompt on the router.
--asp
Newbie Problems - - Please see below [ In reply to ]
On Tue, Nov 11, 2003 at 02:21:19PM -0800, funraps too wrote:
> ./clogin -c "sh ver;sh log" x.x.x.x
> spawn telnet x.x.x.x
> Trying x.x.x.x...
> Connected to x.x.x.x.xxxxxxx.com (x.x.x.x).
> Escape character is '^]'.
>
> User Access Verification
> Username: <some_username>
> Password:
> <hostname>#
> Error: TIMEOUT reached

That looks like clogin not recognizing the prompt.
Btw, do you have autoenable set in your .cloginrc?
--asp
Newbie Problems - - Please see below [ In reply to ]
Andrew,

I have the following:

add user * <username>
add password * <password> <password>
add autoenable *



=====================================
Getting missed routers: round 2.
x.x.x.x clogin error: Error: TIMEOUT reached
x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
x.x.x.x: End of run not found
!
x.x.x.x clogin error: Error: TIMEOUT reached
x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
x.x.x.x: End of run not found
!
can not find channel named "exp4"
while executing
"close"
("foreach" body line 110)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out prompt.
# Since autoena..."
(file "/usr/local/rancid/bin/clogin" line 559)
x.x.x.x clogin error: Error: TIMEOUT reached
x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
x.x.x.x: End of run not found
!
=====================================


Andrew Partan <asp at partan.com> wrote:
On Tue, Nov 11, 2003 at 02:21:19PM -0800, funraps too wrote:
> ./clogin -c "sh ver;sh log" x.x.x.x
> spawn telnet x.x.x.x
> Trying x.x.x.x...
> Connected to x.x.x.x.xxxxxxx.com (x.x.x.x).
> Escape character is '^]'.
>
> User Access Verification
> Username:
> Password:
> #
> Error: TIMEOUT reached

That looks like clogin not recognizing the prompt.
Btw, do you have autoenable set in your .cloginrc?
--asp
Newbie Problems - - Please see below [ In reply to ]
Try:

add autoenable * 1

funraps too writes:
>Andrew,
>
>I have the following:
>
>add user * <username>
>add password * <password> <password>
>add autoenable *
>
>
>
>=====================================
>Getting missed routers: round 2.
>x.x.x.x clogin error: Error: TIMEOUT reached
>x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
>x.x.x.x: End of run not found
>!
>x.x.x.x clogin error: Error: TIMEOUT reached
>x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
>x.x.x.x: End of run not found
>!
>can not find channel named "exp4"
> while executing
>"close"
> ("foreach" body line 110)
> invoked from within
>"foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> send_user "$router\n"
> # Figure out prompt.
> # Since autoena..."
> (file "/usr/local/rancid/bin/clogin" line 559)
>x.x.x.x clogin error: Error: TIMEOUT reached
>x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1:
>x.x.x.x: End of run not found
>!
>=====================================
>
>
>Andrew Partan <asp at partan.com> wrote:
>On Tue, Nov 11, 2003 at 02:21:19PM -0800, funraps too wrote:
>> ./clogin -c "sh ver;sh log" x.x.x.x
>> spawn telnet x.x.x.x
>> Trying x.x.x.x...
>> Connected to x.x.x.x.xxxxxxx.com (x.x.x.x).
>> Escape character is '^]'.
>>
>> User Access Verification
>> Username:
>> Password:
>> #
>> Error: TIMEOUT reached
>
>That looks like clogin not recognizing the prompt.
>Btw, do you have autoenable set in your .cloginrc?
>--asp