[rancid] Re: Patch for Brocade Stacking Switches

john heasley heas at shrubbery.net
Fri Jul 30 19:57:10 UTC 2010


Fri, Jul 30, 2010 at 07:45:48AM +0200, 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?

>          #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
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list