Discussion:
[rancid] Removing flash free space collection
Adam McNeal
2010-03-08 14:09:48 UTC
Permalink
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?


Thank you,

Adam McNeal
Telecommunications and Network Services
Penn State University
***@psu.edu
Desk: 814-865-9985
Desktop Video Call: 30165
john heasley
2010-03-08 18:30:43 UTC
Permalink
Post by 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
Index: configs/telecom-sw02.tns.its.psu.edu
===================================================================
retrieving revision 1.49
!
!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/;
}
Post by Adam McNeal
Thank you,
Adam McNeal
Telecommunications and Network Services
Penn State University
Desk: 814-865-9985
Desktop Video Call: 30165
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Chris Gauthier
2010-03-08 19:05:52 UTC
Permalink
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-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of john heasley
Sent: Monday, March 08, 2010 10:31 AM
To: Adam McNeal
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: Removing flash free space collection
Post by 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
Index: configs/telecom-sw02.tns.its.psu.edu
===================================================================
retrieving revision 1.49
!
!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/;
}
Post by Adam McNeal
Thank you,
Adam McNeal
Telecommunications and Network Services
Penn State University
Desk: 814-865-9985
Desktop Video Call: 30165
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...