[rancid] Citrix NetScaler / nsrancid "Last modified" lines

Roman Hochuli roman.hochuli at nexellent.ch
Fri Jul 12 13:39:35 UTC 2013


Hello All

I was getting tired to have my logs/mailbox beeing filled up with lines
of this type with every run of rancid:

--snip
- # Last modified by `save config`, Fri Jul 12 13:07:26 2013
+ # Last modified by `save config`, Fri Jul 12 14:07:31 2013
--snap


So I decided to filter out that line. Maybe others would be interested
as well. So here is the diff:

--snip
--- nsrancid	2013-07-12 15:14:06.000000000 +0200
+++ nsrancid	2013-07-12 15:24:34.000000000 +0200
@@ -185,6 +185,9 @@
 		$_ =~ s/community label .*$/community label <removed>/;
 	    }
 	}
+	if (/^# Last modified/) {
+		$_ = "";
+	}
 	return(1) if /(invalid command name)/;
 	ProcessHistory("","","","$_");
     }
--snap

Enjoy.

-- 
Best regards,
Roman Hochuli
Operations Manager

nexellent ag
Saegereistrasse 33
CH-8152 Glattbrugg

Phone:       +41 44 872 20 00
Fax:         +41 44 872 20 01
URL:         www.nexellent.ch
X-NCC-RegID: ch.nexellent

Imagination is the one weapon in the war
against reality.
                    -- Jules de Gaultier



More information about the Rancid-discuss mailing list