aboutsummaryrefslogtreecommitdiffstats
path: root/sql/strip.pl
diff options
context:
space:
mode:
authorroot <root@riffraff.tg14.gathering.org>2014-04-20 02:58:05 +0200
committerroot <root@riffraff.tg14.gathering.org>2014-04-20 02:58:05 +0200
commit8f4ae8e5833f0d26be5fad5160ae6ee0479b0712 (patch)
treeda5089e91fbe52fd7da57a1c431c9af64f6ac8af /sql/strip.pl
parent37a3b5d6ed97367989aecc875f1db1e9eb0458df (diff)
parent19cd0064816a577b72577b9f21a5a946eb746f64 (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'sql/strip.pl')
-rw-r--r--sql/strip.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/strip.pl b/sql/strip.pl
index 51739a6..1402130 100644
--- a/sql/strip.pl
+++ b/sql/strip.pl
@@ -7,6 +7,7 @@ $ignore .= "([0-9]{4}\-[0-9]{2}\-[0-9]{2} [0-9]{2}\:[0-9]{2}\:[0-9]{2})";
$ignore .= ").*";
my $community = "<removed>";
+my $snmpv3 = 'SHA/<removed>/AES/<removed>';
my $skip = 0;
@@ -14,7 +15,7 @@ open (SQL, $ARGV[0]) or die "Unable to open SQL-file";
while (<SQL>) {
unless (/^$ignore$/){
- if (/COPY (mbd_log|squeue|temppoll|ap_poll)/){
+ if (/COPY (linknet_ping|ping|dhcp|mbd_log|squeue|temppoll|ap_poll)/){
$skip = 1;
print;
}
@@ -27,6 +28,7 @@ while (<SQL>) {
s/$community/<removed>/g; # community
s/PASSWORD '.+'/PASSWORD '<removed>'/g; # password for SQL-users
s/public$/<removed>/; # public-community -- assuming last column
+ s/$snmpv3/SHA\/<removed>\/AES\/<removed>/g; # snmpv3
print;
}
}