[rancid] Getting notified on timestamp changes for IOS-XE devices

Steve O'Brien sobrien at nso.edu
Thu May 5 19:59:33 UTC 2022


Thank you, it's been a while since I have used patch but I can't seem to
get it to run without error.
patch < ios.pm.patch
patching file ios.pm
Hunk #1 FAILED at 1230.
1 out of 1 hunk FAILED -- saving rejects to file ios.pm.rej

patching file ios.pm
Hunk #1 FAILED at 1230.
1 out of 1 hunk FAILED -- saving rejects to file ios.pm.rej

more ios.pm.rej
--- ios.pm
+++ ios.pm.new
@@ -1230,7 +1230,7 @@
        # 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, $');


*Steve O'Brien* | Senior Network Administrator

National Solar Observatory

Daniel K. Inouye Solar Telescope Project

22 Ohi’a Ku Street, Pukalani, HI 96768


On Thu, May 5, 2022 at 8:00 AM heasley <heas at shrubbery.net> wrote:

> 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, $');
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20220505/df256cab/attachment.htm>


More information about the Rancid-discuss mailing list