[rancid] Backing up Brocade devices with read-only user
Tobias Brunner
tobias.brunner at nine.ch
Tue Jan 8 20:35:48 UTC 2013
Hi,
> After having the configuration backup running for this Brocade
> devices, every
> rancid-run I get the following diff:
>
> -- configs/router1 (revision 340)
> @@ -5,11 +5,11 @@
> !NI-X-HSF Switch Fabric Module 1 (Serial #: YYYYYY, Part #:
> 60-1001588-14)
> !FE 1: Type fe600, Version 1
> !FE 3: Type fe600, Version 1
> - !Switch Fabric Module 1 Up Time is 3 days 4 hours 43 seconds
> + !Switch Fabric Module 1 Up Time is 3 days 11 hours 39 seconds
> !NI-X-HSF Switch Fabric Module 2 (Serial #: YYYYYY, Part #:
> 60-1001588-14)
> !FE 1: Type fe600, Version 1
> !FE 3: Type fe600, Version 1
> - !Switch Fabric Module 2 Up Time is 3 days 4 hours 43 seconds
> + !Switch Fabric Module 2 Up Time is 3 days 11 hours 39 seconds
>
> How can I exclude these lines from the diff?
I got a patch from heasley which excludes this lines from the diff:
Index: bin/francid.in
===================================================================
--- bin/francid.in (revision 2658)
+++ bin/francid.in (working copy)
@@ -179,7 +179,7 @@
next if (/^(The system |Crash time)/);
next if (/^(System|(Active|Standby) Management|LP Slot \d+|Switch
Fabric
- Module \d+) uptime is/);
+ Module \d+) (uptime|Up Time) is/);
# remove uptime on newer switches
s/(STACKID \d+)\s+system uptime is.*$/$1/;
Thanks a lot for this great support! I appreciate it...
Cheers,
Tobias
--
Nine Internet Solutions AG, Albisriederstr. 243a, CH-8047 Zuerich
Support +41 44 637 40 40 | Tel +41 44 637 40 00 | Direct +41 44 637 40
13
Skype nine.ch_support
More information about the Rancid-discuss
mailing list