Mailing List Archive

Harddisk on IOX-XR
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?

# 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;
}

--

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.
Re: Harddisk on IOX-XR [ In reply to ]
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@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Harddisk on IOX-XR [ In reply to ]
Yes, that is the issue. I'd rather have it not show that change every day.

On Mon, Jan 29, 2024 at 5:18?PM heasley <heas@shrubbery.net> wrote:

> 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;
> > }
>


--

Wyoming Department of Enterprise Technology Services

Emerson Building, 2001 Capitol Avenue, Cheyenne, WY 82001


Daniel Schmidt
Network Engineer

307-509-0286

daniel.schmidt@wyo.gov <anna.jacknitsky1@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.
Re: Harddisk on IOX-XR [ In reply to ]
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@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@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@www.shrubbery.net
> https://www.shrubbery.net/mailman/listinfo/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Harddisk on IOX-XR [ In reply to ]
I am not picky, I will take any solution offered

On Wed, Jan 31, 2024 at 6:33?PM heasley <heas@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@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@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@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@wyo.gov <anna.jacknitsky1@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.
Re: Harddisk on IOX-XR [ In reply to ]
How about option 1 and the following:

>> sub diskszsummary {
>> …
>> if ($pcnt > threshold) {
>> $pcnt = int($pcnt / margin) * margin;
>> }
>> …





> heasley <heas@shrubbery.net> ? 2024?2?1? ??8:33 ???
>
>> sub diskszsummary {
>> …
>> if ($pcnt > 10) {
>> $pcnt = int($pcnt / 5) * 5;
>> }
>> …
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss