[rancid] Harddisk on IOX-XR

Daniel Schmidt daniel.schmidt at wyo.gov
Thu Feb 1 02:14:37 UTC 2024


I am not picky, I will take any solution offered

On Wed, Jan 31, 2024 at 6:33 PM heasley <heas at shrubbery.net> wrote:

> Tue, Jan 30, 2024 at 06:45:34AM +0000, Pan Affa:
> > I have modified diskszsummary function in the rancid.pm as the
> following:
> >
> > sub diskszsummary {
> >     …
> >     if ($pcnt > 10) {
> >         $pcnt = int($pcnt / 5) * 5;
> >     }
> >     …
> >
> > from Affa Pan
> >
> > Pan Affa <affa_pan at hotmail.com> 於 2024年1月30日 上午8:03 寫道:
> >
> > Hi Hensley,
> >
> > I have some suggestions about disk summary.
> >
> > 1. Is it possible to disable or enable in rancid.conf?
> > 2. Oscillation can use the base 5%
> >     For example, 95~99% shows 95%, 90~94% shows 90%
>
> Pan/Daniel,
>
> I'd thought of a couple of options to reduce the noise from this status
> line:
> 1) add a knob to omit the usage; just report the capacity
> 2) a knob to set a % threshold remaining, then only report usage when it
>    falls below that threshold.
> 3) only report usage in on a margin (eg: 5%), like Pan has suggested.
> 4) Option 1 + one of options 2 or 3.
>
> Opinions?
>
> > from Affa Pan
> >
> > heasley <heas at shrubbery.net> 於 2024年1月30日 上午7:18 寫道:
> >
> > Wed, Jan 17, 2024 at 01:46:44PM -0600, Daniel Schmidt:
> > This one's driving me nuts.
> >
> > -!Flash: harddisk: 22 GB total (93% free)
> > +!Flash: harddisk: 22 GB total (94% free)
> > !
> > !0/RP0-IDPROM - ASR 9900 Fixed Chassis Route Processor
> >
> > Slight modification somewhere in here?
> >
> > you mean that it is oscillating between 93/94%?
> >
> >       # XR: 822083584 bytes total (821081600 bytes free)
> >       # eXR: 990484 kbytes total (813208 kbytes free)
> >       if (/^\s*(\d+ k?bytes) total\s+\((\d+ k?bytes) free\)/i) {
> >           ProcessHistory("FLASH","","","!Flash: $dev: " .
> >                          diskszsummary($1, $2) . "\n");
> >           next;
> >       }
> >
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at www.shrubbery.net
> > https://www.shrubbery.net/mailman/listinfo/rancid-discuss
>


-- 

Wyoming Department of Enterprise Technology Services

Emerson Building, 2001 Capitol Avenue, Cheyenne, WY 82001


Daniel Schmidt
Network Engineer

  307-509-0286

  daniel.schmidt at wyo.gov <anna.jacknitsky1 at wyo.gov>

  ets.wyo.gov

  I’m in Cheyenne

-- 

E-Mail to and from me, in connection with the transaction 
of public 
business, is subject to the Wyoming Public Records 
Act and may be 
disclosed to third parties.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20240131/6428cc9d/attachment.htm>


More information about the Rancid-discuss mailing list