Discussion:
[rancid] ASA Time-Based License Diff Removal
Christopher DeRemer
2010-07-27 14:22:54 UTC
Permalink
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).

Cheers,

Christoph DeRemer, CCENT
Network Administrator
Phoebe Services
484.619.2168 (Single # Reach)





NOTICE: This confidential message/attachment contains information intended for a specific individual(s). Any inappropriate use, distribution or duplication is strictly prohibited. If received in error, notify the sender and immediately delete this transmission.
john heasley
2010-07-27 23:42:23 UTC
Permalink
Post by 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.
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+(.*)$/ &&

Loading...