[rancid] Extra spaces being randomly added - and seen as config changes

heasley heas at shrubbery.net
Fri Jan 4 21:06:15 UTC 2013


Fri, Jan 04, 2013 at 02:30:43AM -0800, Aaron Wasserott:
> RANCID is running from crontab, not from a terminal, and the user on the network devices has root-level permissions. All RANCID scripts are at 2.3.8. I am having the same issue discussed here:
> 
> http://www.gossamer-threads.com/lists/rancid/users/5887
> 
> Where it's just the email output showing a false difference, not the saved config in CVS.
> 
> I am pretty sure it's not the device either as I just got it on a ScreenOS firewall and there is no option to set terminal width, just paging (length) which is currently off. Here is an example from a ScreenOS device:
> 
> set ike gateway "xcolo" address 123.45.67.89 Main outgoing-interface "bgroup0" preshare "wLE/x18INtTxJ6sT42CM5FxvOphJ/3%YZg==" sec-level standard
> + #set ike gateway "xcolo" address 123.45.67.89 Main outgoing-interface 
> + "bgroup0" preshare <removed> sec-level standard

would you try this change?  i'm uncertain that this will have any affect,
its jut a hunch.


Index: bin/nrancid.in
===================================================================
--- bin/nrancid.in	(revision 2658)
+++ bin/nrancid.in	(working copy)
@@ -217,7 +217,7 @@
 	next if /^Total Config.+$/i;
 	last if(/$prompt/);
 	# throw away the pager prompts
-	s/^--- more ---[\s\b]*//g;
+	s/^--- more ---[ \b]*//g;
 
  	if (/^set admin name "(\S+)"$/ && $filter_pwds >= 1) {
 	    ProcessHistory("ADMIN","","","#set admin name <removed>\n");


More information about the Rancid-discuss mailing list