[rancid] Backing up Brocade devices with read-only user

Danilo Gouveia pxb368 at motorola.com
Tue Jan 8 18:41:18 UTC 2013


Is there any specific point in francid that you put this code? I have the
same issue here with the STACKID and I tried to put it in the line 514 and
it's not working.

Thanks

On Tue, Jan 8, 2013 at 11:29 AM, Jethro R Binks
<jethro.binks at strath.ac.uk>wrote:

>     while (<INPUT>) {
>         tr/\015//d;
>         next if /^\s*$/;
>         last if (/^$prompt/);
>
>         next if (/^(The system |Crash time)/);
>         next if (/^(System|(Active|Standby) Management|LP Slot \d+) uptime
> is/);
>
>         # This line appears somewhere between Netiron 5.1 and 5.3
>         next if (/^(Switch Fabric Module \d+ Up Time)/);
>
>         # remove uptime on newer switches
>         # but retain the stackid itself
>         s/(STACKID \d+)\s+system uptime is.*$/$1/;
>
>         # See comments at start for more about this flag:
>         if ( $skip_corrupt_serial ) {
>                 next if (/^\s+Serial #/);
>         }
>
>         s/^\s*(HW|SW)/$1/;
>         s/^\s*(Compiled on)/SW: $1/;
>         s/^\s*(\(\d+ bytes\) from )/SW: $1/;
>
>         #s/^(HW.*)/$1\n/;
>         if (/^SL (\d+)/) {
>             $slot = "Slot $1";
>             s/^SL \d+/$slot/;
>         }
>         if (/MHz .* processor/) {
>             $slot = "MGMT";
>         }
>         s/^(\s*\d+ )/$slot:$1/;
>         s/^===*//;
>
>         ProcessHistory("VERSION","","","!$_");
>     }
>



-- 
Atenciosamente / Best Regards,

Danilo Marques de Gouveia
IT - Network Administrator
55 19 3847 8424
55 19 9160 6441
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130108/22262d19/attachment.html>


More information about the Rancid-discuss mailing list