[rancid] IOS XE 3 knows "show flash"

john heasley heas at shrubbery.net
Wed Oct 6 22:30:19 UTC 2010


Wed, Oct 06, 2010 at 10:16:53AM +0200, 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");

>  	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
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list