[rancid] Re: Removing flash free space collection

Chris Gauthier cgauthier at mapscu.com
Mon Mar 8 19:05:52 UTC 2010


I happen to like the free space messages as well.  I remember how Foundry/Brocade switches would do that on some models.  The fan RPM would cause the same effect.  Rather than enforcing a specific policy of "x MB/KB/GB/etc", what about either a commandline option or an entry into .cloginrc?  I favor .cloginrc because it could then be tailored to the individual systems like can be done with the login methods and credentials.

Since I do not see frequent changes of just the size, I am inclined not to change the behavior.  This is why I favor making the changes optional to use.

Chris G.

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of john heasley
Sent: Monday, March 08, 2010 10:31 AM
To: Adam McNeal
Cc: rancid-discuss at shrubbery.net
Subject: [rancid] Re: Removing flash free space collection

Mon, Mar 08, 2010 at 09:09:48AM -0500, Adam McNeal:
> Sorry if this is a repost, I am still new with Rancid. 
>  
> I have a couple of Foundry devices that repeatedly have changes in flash
> free space due to other backups that are run. The changes are like this:
>  
> Index: configs/telecom-sw02.tns.its.psu.edu
> ===================================================================
> retrieving revision 1.49
> diff -U 4 -r1.49 telecom-sw02.tns.its.psu.edu @@ -57,9 +57,9 @@
>   !
>   !Flash: Compressed Pri Code size = 2667614, Version 04.3.00T3e1
> (sxl04300.bin)
>   !Flash: Compressed Sec Code size = 2667614, Version 04.3.00T3e1
> (sxl04300.bin)
>   !Flash: Compressed BootROM Code size = 524288, Version 04.0.00T3e5
> - !Flash: Code Flash Free Space = 11206656
> + !Flash: Code Flash Free Space = 11264000
>  
> I am not really concerned about these changes in flash size. How would I
> go about suppressing the commands that collect this data?

I think the free space is useful, but agree that the frequent changes are
annoying.  How about reducing this to something like the rounded value of
free space as Gig/Meg/Kilo?

The current code (which become 2.3.3 soon) has a crude version of this for
IOS XR/XE like so:

        if (($ios eq "XR" || $ios eq "XE") && /.*\((\d+) bytes free\)/) {
            my($tmp) = int($1 / (1024 * 1024));
            s/$1 bytes free/$tmp MB free/; 
        }

>  
> Thank you,
>  
> Adam McNeal
> Telecommunications and Network Services
> Penn State University
> awm11 at psu.edu
> Desk: 814-865-9985
> Desktop Video Call: 30165
>  
>  

> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list