Discussion:
[rancid] Extreme Switches with Unsaved Configs
Hahues, Sven
2009-01-23 14:27:53 UTC
Permalink
Hi everyone,

I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.)

I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem.

I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated.

The output is as follows:
-------------------------------------------------------------------------------------
Trying to get all of the configs.
couldn't compile regular expression pattern: quantifier operand invalid
while executing
"expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^M]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 152)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rancid/bin/clogin" line 715)^M
172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch
172.x.x.x: End of run not found

-----------------------------------------------------------------------------------------

This repeats a few times.

Thanks in advance, I really appreciate your assistance.


Sven Hahues
FGCU Computing Services
E-Mail: ***@fgcu.edu
john heasley
2009-01-27 05:41:14 UTC
Permalink
Post by Hahues, Sven
Hi everyone,
I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.)
what is the complete prompt?
Post by Hahues, Sven
I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem.
I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated.
-------------------------------------------------------------------------------------
Trying to get all of the configs.
couldn't compile regular expression pattern: quantifier operand invalid
while executing
"expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^M]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 152)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rancid/bin/clogin" line 715)^M
172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch
172.x.x.x: End of run not found
-----------------------------------------------------------------------------------------
This repeats a few times.
Thanks in advance, I really appreciate your assistance.
Sven Hahues
FGCU Computing Services
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Hahues, Sven
2009-01-27 13:19:16 UTC
Permalink
Mr. Heasley,

Thanks for your reply. The complete prompt upon logging in is this:


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.
Remember to save your configuration changes.
* 300e48-0.45-HH-IDF:1 #

The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems.

Thanks in advance for your assistance.

Regards,

Sven

-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Tuesday, January 27, 2009 12:41 AM
To: Hahues, Sven
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Extreme Switches with Unsaved Configs
Post by Hahues, Sven
Hi everyone,
I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.)
what is the complete prompt?
Post by Hahues, Sven
I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem.
I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated.
-------------------------------------------------------------------------------------
Trying to get all of the configs.
couldn't compile regular expression pattern: quantifier operand invalid
while executing
"expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^M]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 152)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rancid/bin/clogin" line 715)^M
172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch
172.x.x.x: End of run not found
-----------------------------------------------------------------------------------------
This repeats a few times.
Thanks in advance, I really appreciate your assistance.
Sven Hahues
FGCU Computing Services
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-01-27 21:39:10 UTC
Permalink
Post by Hahues, Sven
Mr. Heasley,
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.
Remember to save your configuration changes.
* 300e48-0.45-HH-IDF:1 #
Does it clogin login (interactive) successfully? Please send the output of
clogin -d hostname.
Post by Hahues, Sven
The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems.
Thanks in advance for your assistance.
Regards,
Sven
-----Original Message-----
Sent: Tuesday, January 27, 2009 12:41 AM
To: Hahues, Sven
Subject: Re: [rancid] Extreme Switches with Unsaved Configs
Post by Hahues, Sven
Hi everyone,
I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.)
what is the complete prompt?
Post by Hahues, Sven
I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem.
I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated.
-------------------------------------------------------------------------------------
Trying to get all of the configs.
couldn't compile regular expression pattern: quantifier operand invalid
while executing
"expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^M]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 152)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rancid/bin/clogin" line 715)^M
172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch
172.x.x.x: End of run not found
-----------------------------------------------------------------------------------------
This repeats a few times.
Thanks in advance, I really appreciate your assistance.
Sven Hahues
FGCU Computing Services
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Hahues, Sven
2009-01-28 14:41:36 UTC
Permalink
Mr. Heasley,

Attached, please find the output of clogin -d

I noticed that the script seems to stall out on the last line and never times our or finishes. If I hit enter a few times I see these lines scroll by afterwards:

spawn id exp0 sent <\r>
spawn id exp4 sent <\r\n* 300e48-0.45-HH-IDF:2 # >

* 300e48-0.45-HH-IDF:2 # spawn id exp0 sent <\r>
spawn id exp4 sent <\r\n* 300e48-0.45-HH-IDF:2 # >

Thanks for your help, I really appreciate it.

Sven

-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Tuesday, January 27, 2009 4:39 PM
To: Hahues, Sven
Cc: john heasley; rancid-***@shrubbery.net
Subject: Re: [rancid] Extreme Switches with Unsaved Configs
Post by Hahues, Sven
Mr. Heasley,
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.
Remember to save your configuration changes.
* 300e48-0.45-HH-IDF:1 #
Does it clogin login (interactive) successfully? Please send the output of
clogin -d hostname.
Post by Hahues, Sven
The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems.
Thanks in advance for your assistance.
Regards,
Sven
-----Original Message-----
Sent: Tuesday, January 27, 2009 12:41 AM
To: Hahues, Sven
Subject: Re: [rancid] Extreme Switches with Unsaved Configs
Post by Hahues, Sven
Hi everyone,
I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.)
what is the complete prompt?
Post by Hahues, Sven
I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem.
I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated.
-------------------------------------------------------------------------------------
Trying to get all of the configs.
couldn't compile regular expression pattern: quantifier operand invalid
while executing
"expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^M]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 152)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/home/rancid/bin/clogin" line 715)^M
172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch
172.x.x.x: End of run not found
-----------------------------------------------------------------------------------------
This repeats a few times.
Thanks in advance, I really appreciate your assistance.
Sven Hahues
FGCU Computing Services
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-02-02 22:20:51 UTC
Permalink
Post by 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.
Post by Hahues, Sven
Remember to save your configuration changes.
* 300e48-0.45-HH-IDF:1 #
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
"(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

Loading...