[rancid] [PATCH] ignore ASA log files in ShowFlash
Erik Muller
erikm at buh.org
Wed Feb 20 03:43:09 UTC 2019
With ASA 9.8 running on FTD2100s, there are a bunch of log files included in "show flash" that are regularly appended and archived, which makes for a lot of noise in diffs.
- !Flash: 537549601 38345 Feb 14 2019 22:54:53 log/ssp_tz/ssp_tz.log.4.gz
- !Flash: 537549599 38703 Feb 13 2019 17:30:00 log/ssp_tz/ssp_tz.log.5.gz
+ !Flash: 537549601 38345 Feb 14 2019 22:54:53 log/ssp_tz/ssp_tz.log.5.gz
+ !Flash: 537549611 38412 Feb 16 2019 04:24:48 log/ssp_tz/ssp_tz.log.4.gz
...
- !Flash: 268440067 81510 Feb 19 2019 15:38:53 log/ssp_ntpd/ssp_ntp.log
+ !Flash: 268440067 87698 Feb 19 2019 23:38:39 log/ssp_ntpd/ssp_ntp.log
The attached patch adds them to the list of files where properties should be ignored, giving a nice stable output.
thanks,
-e
-------------- next part --------------
--- ios.pm.orig 2019-02-19 16:48:24.000000000 -0800
+++ ios.pm 2019-02-19 17:30:37.000000000 -0800
@@ -996,12 +996,15 @@
next;
if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|snooping)/ ||
- /(smart-log\/agentlog|syslog)\s*$/) {
- # filter frequently changing files (dhcp & vlan database) from flash
+ /(smart-log\/agentlog|syslog)\s*$/ ||
+ /(log\/(?:ssp_tz\/)?[^. ]+\.log(?:\.[0-9]+\.gz)?)\s*$/) {
+ # filter frequently changing files (dhcp & vlan database, logs) from flash
# change from:
+ # 537549598 38354 Feb 19 2019 20:59:32 log/ssp_tz/ssp_tz.log.1.gz
# 9 660 Jan 15 2011 20:43:54 vlan.dat
# 9 660 Jan 15 2011 20:43:54 +00:00 vlan.dat
# to:
+ # log/ssp_tz/ssp_tz.log.1.gz
# vlan.dat
# vlan.dat
if (/(\s*\d+)(\s+[-rwx]+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ .\d+:\d+)/) {
More information about the Rancid-discuss
mailing list