[rancid] Harddisk on IOX-XR

heasley heas at shrubbery.net
Thu Feb 1 00:33:29 UTC 2024


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



More information about the Rancid-discuss mailing list