--- panos.pm.filter-secrets	2019-02-06 02:03:28.000000000 -0500
+++ panos.pm	2019-02-20 11:41:31.184369874 -0500
@@ -78,7 +78,7 @@
 sub init {
 
     # add content lines and separators
-    ProcessHistory("","","","!RANCID-CONTENT-TYPE: $devtype\n!\n");
+    ProcessHistory("","","","#RANCID-CONTENT-TYPE: $devtype\n!\n");
 
     0;
 }
@@ -190,6 +190,13 @@
 	    return(1);
 	}
 
+	if (/^(\s*snmp-community-string )[^ ;]+(\s?[;{])$/ && $filter_commstr) {
+	    $_ = "#$1<removed>$2\n";
+	}
+	if (/^(\s*key )[^ ;]+(\s?[;{])$/ && $filter_pwds >= 1) {
+	    $_ = "#$1<removed>$2\n";
+	}
+
 	ProcessHistory("","","","$_");
 	# end of config
     }
