[rancid] Getting notified on timestamp changes for IOS-XE devices
heasley
heas at shrubbery.net
Thu May 5 18:00:53 UTC 2022
Wed, May 04, 2022 at 05:38:54PM -1000, Steve O'Brien:
> Anyone? Hints, clues, anything?
>
> On Mon, May 2, 2022 at 4:38 PM Steve O'Brien <sobrien at nso.edu> wrote:
>
> > I have looked at a bunch of similar questions but still have not figured
> > out how to get rancid to ignore the timestamp diff in IOS-XE devices.
> >
> > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00
> > ssd
> > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00
> > ssd
> >
> > It seems like it was a recent change, I just updated the IOS-XE devices to
> > Cisco IOS XE Software, Version 17.03.04
> >
> > I am, and have been, using the standard cisco template
> > running rancid 3.13-3
> >
> > TIA,
> > Steve
This ought to filter that timestamp.
diff --git a/lib/ios.pm b/lib/ios.pm
index ecb483e3..525c0175 100644
--- a/lib/ios.pm.in
+++ b/lib/ios.pm.in
@@ -1230,7 +1230,7 @@ sub DirSlotN {
# to:
# -rw- vlan.dat
# -rw- vlan.dat
- if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog)\s*$/ ||
+ if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog|ssd)\s*$/ ||
/(tracelogs|throughput_monitor_params|underlying-config)\s*$/) {
if (/(\s*\d+\s+)(\S+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ .\d+:\d+)/) {
my($fn, $a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $5, $');
More information about the Rancid-discuss
mailing list