[rancid] Re: Procurve hlogin "show lldp expect"

john heasley heas at shrubbery.net
Tue Mar 3 19:30:35 UTC 2009


Tue, Mar 03, 2009 at 05:14:34PM +0100, Regis A. Despres:
> 
> Hi,
> 
> I'm facing a strange behavior trying to get "show lldp info remote-device" from a procurve J4904A.
> telnet and ssh hlogin expect script both hangs after giving those infos.
> It appears to see an unwanted space just in front the hostname. I don't really have a clue if that is why that hangs.
> If someone have a idea ... =)

It really shouldn't be continuing there.  Could you try the attached patch?
-------------- next part --------------
Index: hlogin.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/hlogin.in,v
retrieving revision 1.58
diff -d -u -r1.58 hlogin.in
--- hlogin.in	12 Nov 2008 00:59:04 -0000	1.58
+++ hlogin.in	3 Mar 2009 19:01:30 -0000
@@ -522,8 +522,7 @@
 	send -- "[subst -nocommands [lindex $commands $i]]\r"
 	expect {
 	    -re "^\[^\n\r *]*$reprompt"	{ catch {send_user -- "$expect_out(buffer)"} }
-	    -re "^\[^\n\r]*$reprompt."	{ catch {send_user -- "$expect_out(buffer)"}
-					  exp_continue }
+	    -re "^\[^\n\r]*$reprompt "	{ catch {send_user -- "$expect_out(buffer)"} }
 	    -re "\[\n\r]+"		{ catch {send_user -- "$expect_out(buffer)"}
 					  exp_continue }
 	    -re "\[^\r\n]*Press <SPACE> to cont\[^\r\n]*"	{


More information about the Rancid-discuss mailing list