[rancid] Re: Troubles getting RANCID working with Cisco

Chris Zimmerman chrisz at urbancom.net
Tue Mar 14 21:49:37 UTC 2006


Can anyone help?





[rancid at engineering rancid]$ /usr/local/rancid/bin/clogin 64.7.96.38
64.7.96.38
spawn telnet 64.7.96.38
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {14774}

expect: does "" (spawn_id exp4) match regular expression "(Connection
refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
"(#| \(enable\))"? no
"Login invalid"? no
Trying 64.7.96.38...
Connected to 64.7.96.38.
Escape character is '^]'.

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match regular expression
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown
host\r"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
"(#| \(enable\))"? no
"Login invalid"? no


User Access Verification

Username: 
expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match regular expression
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown
host\r"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
"(#| \(enable\))"? no
"Login invalid"? no

% Username:  timeout expired!
Username: 
expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match regular expression
"(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown
host\r"? no

expect: does "Trying 64.7.96.38...\r\r\nConnected to 64.7.96.38.\r\r\nEscape
character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is
unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
"(#| \(enable\))"? no
"Login invalid"? no
expect: timed out

Error: TIMEOUT reached
[rancid at engineering rancid]$ 
[rancid at engineering rancid]$ 
[rancid at engineering rancid]$

 
 
 
-------------------------------------
Chris Zimmerman
Senior Network Engineer
chrisz at urbancom.net
(708) 687-2090
 
 

-----Original Message-----
From: Austin Schutz [mailto:tex at off.org] 
Sent: Tuesday, March 14, 2006 3:43 PM
To: Chris Zimmerman
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Re: Troubles getting RANCID working with Cisco


	You can put:

exp_internal 1;

	near the top of clogin temporarily for debugging. That will tell
you what expect is sending/receiving from the remote host.

	I thought I had passed in a patch for a debugging flag for this,
must have forgotten. One more for the todo list...

	Austin

On Tue, Mar 14, 2006 at 03:07:47PM -0600, Chris Zimmerman wrote:
> This isn't the problem ...  As I stated, it hangs at the "Username:"
prompt
> ....
> 
> 
> 
> It just never logs in ...
> 
>  
> [rancid at engineering rancid]$ bin/clogin 64.x.xx.xx 64.x.xx.xx spawn telnet
> 64.x.xx.xx Trying 64.x.xx.xx...
> Connected to 64.x.xx.xx.
> Escape character is '^]'.
> 
> 
> User Access Verification
> 
> Username:  
> 
> 
> 
> And there it just sits.  It refuses to attempt to log in.
> 
> 
> 
> 
> 
> 
> 
>  
>  
>  
> -------------------------------------
> Chris Zimmerman
> Senior Network Engineer
> chrisz at urbancom.net
> (708) 687-2090
>  
>  
> 
> -----Original Message-----
> From: john heasley [mailto:heas at shrubbery.net] 
> Sent: Tuesday, March 14, 2006 1:12 PM
> To: Chris Zimmerman
> Subject: Re: [rancid] Troubles getting RANCID working with Cisco
> 
> see the autoenable directive of cloginrc(5).
> 
> Tue, Mar 14, 2006 at 11:44:32AM -0600, Chris Zimmerman:
> > Hi, I am installing RANCID for the first time.  We are having troubles
> > getting it to work.
> > 
> >  
> > 
> > We are running RedHat 9.0, and have expect v5.40.1
> > 
> >  
> > 
> > I have tried to run the "clogin" for testing.  It will connect to my
> router,
> > but hangs at the login prompt.  How can I tell if this is a problem with
> > expect, or if I have something else going on?
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > Chris
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > -------------------------------------
> > 
> > Chris Zimmerman
> > 
> > Senior Network Engineer
> > 
> > chrisz at urbancom.net
> > 
> > (708) 687-2090
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> 
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss




More information about the Rancid-discuss mailing list