[rancid] System Up Time & Dell

heasley heas at shrubbery.net
Thu May 1 20:14:33 UTC 2014


Thu, May 01, 2014 at 01:23:52PM -0400, Gerhard Mourani:
> I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and it
> work. But every time the script run, I receive the following diff.
> 
> - ! System Up Time (days,hour:min:sec):       02,11:30:13
> + ! System Up Time (days,hour:min:sec):       02,23:31:44

this should do it.

Index: bin/srancid.in
===================================================================
--- bin/srancid.in	(revision 2828)
+++ bin/srancid.in	(working copy)
@@ -215,7 +215,7 @@
 	s/[\b]+\s*[\b]*//g;
 
 	# Remove Uptime
-	/ Up time/ && next;
+	/ up time/i && next;
 
 	# filter temperature sensor info for Dell 6428 stacks
 	/Temperature Sensors:/ && next;
@@ -251,7 +251,7 @@
 	s/[\b]+\s*[\b]*//g;
 
 	# Remove Uptime
-	/ Up time/ && next;
+	/ up time/i && next;
 	ProcessHistory("COMMENTS","keysort","D1","! $_");
     }
     return(0);



More information about the Rancid-discuss mailing list