[rancid] Re: Extreme Switches with Unsaved Configs

john heasley heas at shrubbery.net
Mon Feb 2 22:20:51 UTC 2009


Wed, Jan 28, 2009 at 09:41:36AM -0500, Hahues, Sven:
> Extremeware
> Copyright (C) 1996-2006 Extreme Networks.  All rights reserved.
> Protected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436
> =============================================================================================================================
> 
> Press the <tab> key at any time for completions.
                ^ this is the problem.
> Remember to save your configuration changes.
> * 300e48-0.45-HH-IDF:1 # 

right here:

> expect: does " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks.  All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the <tab> key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 # " (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
> "Last login:"? no
> "@[^\r\n]+ ([Pp]assword|passwd):"? no
> "(Username|Login|login|user name|User):"? no
> "([Pp]assword|passwd):"? no
> ">"? yes
> expect: set expect_out(0,string) ">"
> expect: set expect_out(spawn_id) "exp4"
> expect: set expect_out(buffer) " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks.  All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the <tab>"
> send: sending "enable\r" to { exp4 }

grumble.  I think this hack will fix it.

Index: clogin.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v
retrieving revision 1.129
diff -d -u -r1.129 clogin.in
--- clogin.in	12 Nov 2008 00:59:04 -0000	1.129
+++ clogin.in	2 Feb 2009 22:19:41 -0000
@@ -529,6 +529,9 @@
 	-re "Last login:"	{
 				  exp_continue
 				}
+	-re "Press the <tab> key \[^\r\n]+\[\r\n]+"	{
+				  exp_continue
+				}
 	-re "@\[^\r\n]+ $p_prompt"	{
 				  # ssh pwd prompt
 				  sleep 1


More information about the Rancid-discuss mailing list