[rancid] Re: clogin needs this line to support exit error on Cisco CSS

William Yardley rancid at veggiechinese.net
Wed Nov 1 01:44:53 UTC 2006

On Wed, Oct 04, 2006 at 11:05:58AM -0700, Lance Vermilion wrote:

> Please add this to clogin so it will support the prompt that the CSS
> spits out when a config is changed and you attempt to exit.

>         -re "Configuration changes have occurred*" {               
>                                                   send "n\r"
>                                                   exp_continue

Ahh! I was just about to write about this very problem... thanks for
sending a solution - good thing I looked through my list mail first for

I'm not sure what the "*" at the end accomplishes. I think it will work
without it. And it didn't really need to be a regex.

It might make sense to also add an entry for the: "Profile changes have
occurred.  Save changes before exiting, [y/n]" message.

I've attached a diff to current clogin which does the above, and I think
has more or less the correct indenting and stuff... It's also at:

If no one sees any problems, perhaps this (or a modified "fix") can be
added to the next release?


-------------- next part --------------
--- clogin.orig	2006-10-31 17:22:18.000000000 -0800
+++ clogin	2006-10-31 17:37:25.000000000 -0800
@@ -671,6 +671,10 @@
 						  send "exit\r"
+	-re "(Profile|Configuration) changes have occurred\."	{
+						  send "n\r"
+						  exp_continue
+						}
 	"Do you wish to save your configuration changes" {
 						  send "n\r"

More information about the Rancid-discuss mailing list