[rancid] Re: IFBrief no longer reporting for Cisco gear with 2.3.2a7

john heasley heas at shrubbery.net
Fri Jan 11 20:26:10 UTC 2008


Fri, Jan 11, 2008 at 03:19:00PM -0500, Elliott, Andrew:
> John,
> 
> Thanks so much for the answer!
> 
> I tried to add it myself by adding this line to the commandtable:
> 
> {'show ip interface brief'      => "ShowIFBrief"},
> 
> And this routine:
> 
> sub ShowIFBrief {
>     print STDERR "    In ShowIFBrief: $_" if ($debug);
> 
>     while (<INPUT>) {
>         tr/\015//d;
>         last if (/^$prompt/);
>         next if (/^(\s*|\s*$cmd\s*)$/);
>         return(-1) if (/command authorization failed/i);
>         ProcessHistory("COMMENTS","","","!IFBrief: $_");
>     }
>     ProcessHistory("COMMENTS","","","!\n");
>     return(0);
> }
> 

I'm trying to add a way to make local additions (and omissions) like this
easier.  but it will not be ready until after 2.3.2.


More information about the Rancid-discuss mailing list