[rancid] Rancid and SNMPv3

heasley heas at shrubbery.net
Thu Sep 8 21:37:08 UTC 2016


Thu, Sep 08, 2016 at 08:18:55PM +0000, michael liu:
>  I just enabled SNMPv3 on LTM 11.5.1 with rancid 2.3.8
> 
> I keep getting following in rancid, how could I disable it in F5rancid.in?
> 
> 
>       users {
> 
>           imon1team_1 {
> 
> -             auth-password-encrypted .F@>la[Da7Gb>m\\.-T\?+Gp\?bEsETiTW\\9HeHX`^N=fX<7Kd
> 
> +             auth-password-encrypted "RQiL+qJD1UjLci\?:]>T_BjcJcNOZrMYj9m;>@jdl9;8XYC^"
> 
>               auth-protocol md5
> 
>               oid-subset .1
> 
>               privacy-protocol none

I won't help you with 2.3.8; you need to upgrade.  for 3.5.1, i believe
this will do it.

Index: CHANGES
===================================================================
--- CHANGES	(revision 3458)
+++ CHANGES	(working copy)
@@ -1,4 +1,6 @@
 3.5.99
+	bigip.pm: filter snmpv3 oscillating auth-password-encrypted
+
 	iosxr.pm: filter useless FPD upgrade message
 
 3.5.1
Index: lib/bigip.pm.in
===================================================================
--- lib/bigip.pm.in	(revision 3458)
+++ lib/bigip.pm.in	(working copy)
@@ -258,6 +258,11 @@
             ProcessHistory("ENABLE","","","# $1 <removed>\n");
             next;
         }
+        if (/(auth-password-encrypted) / && 
+	    ($filter_osc || $filter_pwds > 1)) {
+            ProcessHistory("ENABLE","","","# $1 <removed>\n");
+            next;
+        }
 
         # catch anything that wasnt matched above.
         ProcessHistory("","","","$_");



More information about the Rancid-discuss mailing list