[rancid] Re: New devices...

john heasley heas at shrubbery.net
Mon Jun 8 16:32:31 UTC 2009


Mon, Jun 08, 2009 at 03:53:03PM +0200, H?kan Lindholm:
> 2008/8/26 Geoff Kuchera <GKuchera at mltvacations.com>:
> 
> > Anyone had any luck pulling configs off:  Cisco ACE 4710 load balancers?, or
> > Cisco GSS?s? I?m willing to work up a script, just wondering if anyone else
> > has already done one?
> 
> 
> I started to look at this recently.  Couldn't find any "prior art".
> 
> This far, I managed to get the (cisco) rancid script collect the Admin
> context config, by slightly modifying when to set the $found_end.
> 
> @@ -1691,7 +1710,7 @@
>        # catch anything that wasnt matched above.
>        ProcessHistory("","","","$_");
>        # end of config.  the ": " game is for the PIX
> -       if (/^(: +)?end$/) {
> +       if (/^(: +)?(ssh key rsa 1024 force|end)$/) {
>            $found_end = 1;
>            return(1);
>        }
> 
> 
> Ugly, I know :)

and probably error prone.  you can not assume that ssh will be enable
nor that cisco will not change the order nor that something else, if
enabled, would appear after the ssh key.

this should likely be a separate script.

> 
> 
> For collecting other contexts (via changeto Other_context), I tried
> using "clogin gateway.ip.addr.ess" as method but without no success.
> 
> /Hakan
> _______________________________________________
> 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