Discussion:
[rancid] Patch for Brocade Stacking Switches
Matthias Cramer
2010-07-30 05:45:48 UTC
Permalink
Hi

Here is a patch which removes the system uptime in the output of newer
stacking switches from Brocade (FLS, FWS, etc).

-------------------------------------------------------------
--- francid-old 2010-07-15 19:21:00.681658978 +0200
+++ francid 2010-07-15 19:56:23.089908460 +0200
@@ -183,6 +183,8 @@
s/^\s*(HW|SW)/$1/;
s/^\s*(Compiled on)/SW: $1/;
s/^\s*(\(\d+ bytes\) from )/SW: $1/;
+ # remove uptime on newer switches
+ s/(STACKID \d+)\s+system uptime is.*$/$1/;

#s/^(HW.*)/$1\n/;
if (/^SL (\d+)/) {
-------------------------------------------------------------

Would be nice if that could be incorporated into the next release.

Regards

Matthias
--
Matthias Cramer / mc322-ripe Senior Network & Security Engineer
iway AG Phone +41 43 500 1111
Josefstrasse 225 Fax +41 44 271 3535
CH-8005 Zürich http://www.iway.ch/
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
john heasley
2010-07-30 19:57:10 UTC
Permalink
Post by Matthias Cramer
Hi
Here is a patch which removes the system uptime in the output of newer
stacking switches from Brocade (FLS, FWS, etc).
-------------------------------------------------------------
--- francid-old 2010-07-15 19:21:00.681658978 +0200
+++ francid 2010-07-15 19:56:23.089908460 +0200
@@ -183,6 +183,8 @@
s/^\s*(HW|SW)/$1/;
s/^\s*(Compiled on)/SW: $1/;
s/^\s*(\(\d+ bytes\) from )/SW: $1/;
+ # remove uptime on newer switches
+ s/(STACKID \d+)\s+system uptime is.*$/$1/;
is it different if the switch is non-stackable or not part of a stack?
Post by Matthias Cramer
#s/^(HW.*)/$1\n/;
if (/^SL (\d+)/) {
-------------------------------------------------------------
Would be nice if that could be incorporated into the next release.
Regards
Matthias
--
Matthias Cramer / mc322-ripe Senior Network & Security Engineer
iway AG Phone +41 43 500 1111
Josefstrasse 225 Fax +41 44 271 3535
CH-8005 Z?rich http://www.iway.ch/
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Matthias Cramer
2010-07-30 20:37:29 UTC
Permalink
Hi
Post by john heasley
Post by Matthias Cramer
Hi
Here is a patch which removes the system uptime in the output of newer
stacking switches from Brocade (FLS, FWS, etc).
-------------------------------------------------------------
--- francid-old 2010-07-15 19:21:00.681658978 +0200
+++ francid 2010-07-15 19:56:23.089908460 +0200
@@ -183,6 +183,8 @@
s/^\s*(HW|SW)/$1/;
s/^\s*(Compiled on)/SW: $1/;
s/^\s*(\(\d+ bytes\) from )/SW: $1/;
+ # remove uptime on newer switches
+ s/(STACKID \d+)\s+system uptime is.*$/$1/;
is it different if the switch is non-stackable or not part of a stack?
Not as I know, only have switches which are not part of a stack.
Post by john heasley
Post by Matthias Cramer
#s/^(HW.*)/$1\n/;
if (/^SL (\d+)/) {
-------------------------------------------------------------
Would be nice if that could be incorporated into the next release.
Regards
Matthias
--
Matthias Cramer / mc322-ripe Senior Network & Security Engineer
iway AG Phone +41 43 500 1111
Josefstrasse 225 Fax +41 44 271 3535
CH-8005 Z?rich http://www.iway.ch/
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...