Discussion:
[rancid] Flash: Code Flash
Gerhard Mourani
2015-04-08 18:52:14 UTC
Permalink
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,
Hughes, Doug
2015-04-08 18:55:24 UTC
Permalink
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-***@shrubbery.net] On Behalf Of Gerhard Mourani
Sent: Wednesday, April 08, 2015 2:52 PM
To: rancid-***@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,
Hughes, Doug
2015-04-08 19:02:29 UTC
Permalink
You got it. That easy.

From: Gerhard Mourani [mailto:***@gmail.com]
Sent: Wednesday, April 08, 2015 3:02 PM
To: Hughes, Doug
Cc: rancid-***@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 <***@DEShawResearch.com<mailto:***@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-***@shrubbery.net] On Behalf Of Gerhard Mourani
Sent: Wednesday, April 08, 2015 2:52 PM
To: rancid-***@shrubbery.net<mailto:rancid-***@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,
Gerhard Mourani
2015-04-08 19:04:52 UTC
Permalink
Thanks ;)
Post by Hughes, Doug
You got it. That easy.
Sent: Wednesday, April 08, 2015 3:02 PM
To: Hughes, Doug
Subject: Re: [rancid] Flash: Code Flash
# This routine parses "show flash"
sub ShowFlash {
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;
}
# This routine parses "show flash"
sub ShowFlash {
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?
Kind of an informal FAQ
Edit your francid (or whatever rancid file you are using)
Find the sub ShowFlash in there
next if (/Flash Free Space/);
-----Original Message-----
Sent: Wednesday, April 08, 2015 2:52 PM
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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss <http://www.shrubbery.net/mailman/listinfo/rancid-discuss>
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss <http://www.shrubbery.net/mailman/listinfo/rancid-discuss>
Loading...