[rancid] Re: Pulling down context configs from a Cisco FWSM

Lance Vermilion lance at gheek.net
Mon Mar 26 15:53:13 UTC 2007


Justin,

Great idea. To add to it, you don't want to include the admin context.
Any others including system which does not show up in a "show
contexts".  I am not sure how the config looks for the admin view with
multiple contexts, but we have only the admin and system contexts and
the configs are the same that I can tell.

act/hq-pix-1/admin# show context
Context Name      Class      Interfaces           URL
*admin            default    GigabitEthernet0/0,  disk0:/admin.cfg
                             GigabitEthernet0/1,
                             GigabitEthernet0/2,
                             GigabitEthernet1/0,
                             GigabitEthernet1/1,
                             Management0/0

> -------- Original Message --------
> Subject: [rancid]  Pulling down context configs from a Cisco FWSM
> From: Justin Shore <justin at justinshore.com>
> Date: Mon, March 26, 2007 8:02 am
> To: rancid-discuss at shrubbery.net
>
> Does anyone have any tricks for using RANCID to pull down Cisco firewall
> (Pix/ASA or FWSM) contexts to stuff them into CVS?  I don't know when a
> contexts has been added so I would expect the script would have to
> connect to the admin context, changeto the system context and then run
> "show contexts" and parse the output of the first column to find out
> what contexts are available.  It would then have to changeto each
> context, pull down the data and move on to the next context.  For that
> matter I'd like to get the content of the system context as well.
>
> Does anyone have any tricks for working with firewalls that have more
> than one context?  I'm guessing that I'm not the only person with such a
> beast. :-)
>
> Thanks
>   Justin
>
>
>
>
>
>
> _______________________________________________
> 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