Discussion:
[rancid] New devices...
Geoff Kuchera
2008-08-26 13:43:00 UTC
Permalink
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...



Thanks,

Geoff Kuchera

MLT, Inc.
Håkan Lindholm
2009-06-08 13:53:03 UTC
Permalink
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 :)



For collecting other contexts (via changeto Other_context), I tried
using "clogin gateway.ip.addr.ess" as method but without no success.

/Hakan
john heasley
2009-06-08 16:32:31 UTC
Permalink
Post by HÃ¥kan Lindholm
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.
Post by HÃ¥kan Lindholm
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...