Discussion:
[rancid] IOS XE 3 knows "show flash"
Marcus Stoegbauer
2010-10-06 08:16:53 UTC
Permalink
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);
john heasley
2010-10-06 22:30:19 UTC
Permalink
Post by Marcus Stoegbauer
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.)/);
should this be
return(1) if ($ios eq "XE");
Post by Marcus Stoegbauer
return(1) if (/^\s*\^\s*$/);
return(1) if (/Line has invalid autocommand /);
return(1) if (/(Invalid (input|command) detected|Type help or )/i);
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...