[rancid] flash flash flash

Lee ler762 at gmail.com
Tue Jul 5 12:20:58 UTC 2011


On 7/5/11, Randy Bush <randy at psg.com> wrote:
> freebsd 8.2
> rancid 2.3.6
>
> - !Flash: disk0: 4188659712 bytes total (2632343552 bytes free)
> + !Flash: disk0: 4188659712 bytes total (2632331264 bytes free)
>
> i get a lot of these on ios and ios xr.  i googled, searched the lists,
> ...  and others whine too.  but i have not seen an answer on list or in
> faq.  clearly i am missing something as this is common as all get out.
>
> clue bat please

Certain files are not displayed in rancid.  Take a look at  ShowFlash
and DirSlotN in rancid to see which files are not displayed.  eg
  # Filter dhcp database
  next if (/dhcp_[^. ]*\.txt/);

I added a 'redacted' variable - eg:
        if (/dhcp[-_]database\s*$/)  {                  # -LR- ignore
dhcp database changes
            $redacted = 1;                              # -LR-
remember that a file has not been displayed
            next;                                       # -LR-
        }                                               # -LR-

and then suppress the bytes free line if files have not been displayed:
        if (/.*\(\d+ bytes (free|used)\)/) {            # -LR- want to
show bytes free?
           if ($redacted) { next; }                     # -LR-   not
when there are files that haven't been shown
        }                                               # -LR-


Lee


More information about the Rancid-discuss mailing list