[rancid] Flash: Code Flash
Hughes, Doug
Douglas.Hughes at DEShawResearch.com
Wed Apr 8 19:02:29 UTC 2015
You got it. That easy.
From: Gerhard Mourani [mailto:gmourani at gmail.com]
Sent: Wednesday, April 08, 2015 3:02 PM
To: Hughes, Doug
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Flash: Code Flash
So, you mean changing:
# This routine parses "show flash"
sub ShowFlash {
my($INPUT, $OUTPUT) = @_;
print STDERR " In ShowFlash: $_" if ($debug);
while (<$INPUT>) {
tr/\015//d;
last if (/^$prompt/);
next if (/^\s*$/);
return(1) if (/^\s+\^$/); # edgeiron invalid command
ProcessHistory("FLASH","","","!Flash: $_");
}
ProcessHistory("","","","!\n");
return;
}
for this one:
# This routine parses "show flash"
sub ShowFlash {
my($INPUT, $OUTPUT) = @_;
print STDERR " In ShowFlash: $_" if ($debug);
while (<$INPUT>) {
tr/\015//d;
last if (/^$prompt/);
next if (/^\s*$/);
next if (/Flash Free Space/);
return(1) if (/^\s+\^$/); # edgeiron invalid command
ProcessHistory("FLASH","","","!Flash: $_");
}
ProcessHistory("","","","!\n");
return;
}
Right?
On Apr 8, 2015, at 2:55 PM, Hughes, Doug <Douglas.Hughes at DEShawResearch.com<mailto:Douglas.Hughes at DEShawResearch.com>> wrote:
Kind of an informal FAQ
Edit your francid (or whatever rancid file you are using)
Find the sub ShowFlash in there
Where it says next if, add another one like this:
next if (/Flash Free Space/);
-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Gerhard Mourani
Sent: Wednesday, April 08, 2015 2:52 PM
To: rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>
Subject: [rancid] Flash: Code Flash
Hello,
Someone know how to make Rancid stop to send me this kind of diff related to Flash?
--- foundry/configs/10.2.107.2 2015/04/02 04:48:46 1.3
+++ foundry/configs/10.2.107.2 2015/04/02 16:49:40 1.4
@@ -45,7 +45,7 @@
!Flash: Compressed Pri Code size = 10842104, Version:08.0.01cT311 (ICX64S08001c.bin)
!Flash: Compressed Sec Code size = 10828856, Version:08.0.01T311 (ICX64S08001.bin)
!Flash: Compressed Boot-Monitor Image size = 778992, Version:10.0.00T310
-!Flash: Code Flash Free Space = 6930432
+!Flash: Code Flash Free Space = 6897664
!
!
!
Gerhard,
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150408/7dfc791e/attachment.html>
More information about the Rancid-discuss
mailing list