[rancid] Issue with nx-os after switch upgrades

Alan McKinnon alan.mckinnon at gmail.com
Wed Mar 4 23:43:25 UTC 2015


On Wed, 4 Mar 2015 17:38:39 -0500
Dan Anderson <dan.w.anderson at gmail.com> wrote:

> Sorry. Should have included the diff:
> 
> --- nxrancid.orig       2014-09-24 10:02:46.017969251 -0400
> +++ nxrancid    2014-09-24 10:03:06.039305060 -0400
> @@ -660,7 +660,7 @@
>         next if (/^(\s*|\s*$cmd\s*)$/);
>         return(1) if /Line has invalid autocommand /;
>         return(1) if /(Invalid input detected|Type help or )/;
> -       return(-1) if (/\% Invalid command at /);
> +       return(1) if (/\% Invalid command at /);
>         return(-1) if (/\% Permission denied/);
>         return(-1) if (/command authorization failed/i);


+1 to this

I recall now doing this for the Nexuses I had back in the day. Solved
many problems just like for John.

I never could understand why Invalid Command would be a fatal error -
if the device can't do it, the script should just move past it and deal
with the output it *can* handle.

Alan

-- 
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list