[rancid] How to ignore certain output?

heasley heas at shrubbery.net
Wed Mar 4 09:42:43 UTC 2015


Adjust for your script, but this should do it.

Index: bin/f5rancid.in
===================================================================
--- bin/f5rancid.in	(revision 3038)
+++ bin/f5rancid.in	(working copy)
@@ -502,6 +502,9 @@
 	/^ip nat (\S+) source static (\S+)/ &&
 	    ProcessHistory("IP NAT $1","ipsort","$2","$_") && next;
 
+	# monitor state
+	/^\s+monitor state (\S+)/ && next;
+
 	# catch anything that wasnt matched above.
 	ProcessHistory("","","","$_");
     }



More information about the Rancid-discuss mailing list