[rancid] Cisco devices and calculating percent free

Chris Wopat me at falz.net
Wed Nov 18 14:45:19 UTC 2020


On Fri, Nov 13, 2020 at 8:31 AM Chris Wopat <me at falz.net> wrote:
>
> So, the only way for me to currently workaround this is to make a
> change directly to rancid.pm, in "sub diskszsummary", such as, but not
> limited to:
>
>     #return("$total total ($pcnt% free)");
>     return("$total total");
>
> Certainly dirty but works. Curious if there's any thoughts on a
> 'clean' way to do this? I know there's an existing 'FILTER_OSC' flag
> that I believe is intended to reduce churn in general, my best guess
> for a 'clean' fix, if it makes sense to people, would be to check that
> here and only return "$pcnt% free" if that isn't set.

We've been running this way for a bit and it's solved our churn issue.
I'll just manually patch this during upgrade for now.

If a similar fix does get included in the FILTER_OSC variable, then
all the better but no biggie.

--Chris



More information about the Rancid-discuss mailing list