[rancid] IOS XE 3 knows "show flash"

Marcus Stoegbauer ms at man-da.de
Wed Oct 6 08:16:53 UTC 2010


Hi,

IOS XE 3 learned the "show flash" command, which makes for redundant
information since all the output is already included in the "dir"
commands. Treating $type="ASR100." the same as 7000, 7200, 7500, or
12000 in ShowFlash fixes the annoyance, the patch is below.

   Marcus

--- rancid-2.3.5/bin/rancid.in	2010-09-08 03:36:08.000000000 +0200
+++ rancid-2.3.5-my/bin/rancid.in	2010-10-06 10:08:18.000000000 +0200
@@ -698,7 +698,7 @@
 	tr/\015//d;
 	last if (/^$prompt/);
 	next if (/^(\s*|\s*$cmd\s*)$/);
-	return(1) if ($type =~ /^(12[40]|7)/);
+	return(1) if ($type =~ /^(12[40]|7|ASR100.)/);
 	return(1) if (/^\s*\^\s*$/);
 	return(1) if (/Line has invalid autocommand /);
 	return(1) if (/(Invalid (input|command) detected|Type help or )/i);


More information about the Rancid-discuss mailing list