[rancid] Re: ASA Time-Based License Diff Removal
john heasley
heas at shrubbery.net
Tue Jul 27 23:42:23 UTC 2010
Tue, Jul 27, 2010 at 10:22:54AM -0400, Christopher DeRemer:
> Hello all,
>
> I just updated our license in an ASA 5520 and now they have "time-based licenses" for your subscription based services... in this case the bot-net filter. I would like to prevent a daily count-down diff like the one seen below. Can someone help me filter this out, I'm not very good at the expect and other code work.
>
> Example:
>
> Index: configs/10.10.1.254
> ===================================================================
> - -- configs/10.10.1.254 (revision 251)
> @@ -8,7 +8,7 @@
> !
> !This platform has an ASA 5520 VPN Plus license.
> - !This platform has a time-based license that will expire in 364 day(s).
> + !This platform has a time-based license that will expire in 363 day(s).
Could filter it until its < 10 days to expiration like this:
Index: bin/rancid.in
===================================================================
--- bin/rancid.in (revision 2232)
+++ bin/rancid.in (working copy)
@@ -203,6 +203,10 @@
ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") && next;
/^Cisco Secure PIX /i &&
ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") && next;
+ # ASA "time-based licenses" - eg: bot-net
+ /^This (PIX|platform) has a time-based license that will expire in\s+(\d{2,})\s+.*$/ &&
+ ProcessHistory("COMMENTS","keysort","D1",
+ "!This $1 has a time-based license\n") && next;
# PIX 6 fail-over license, as in "This PIX has an Unrestricted (UR)
# license." PIX 7 as "his platform has ..."
/^This (PIX|platform) has an?\s+(.*)$/ &&
More information about the Rancid-discuss
mailing list