diff options
author | Ultra2D <Ultra2D@users.noreply.github.com> | 2016-03-09 14:27:50 +0100 |
---|---|---|
committer | Ultra2D <Ultra2D@users.noreply.github.com> | 2016-03-09 14:27:50 +0100 |
commit | 51476cf2a8dd8738ebe631015c8c52ee4aea0d39 (patch) | |
tree | 204c935669016c971a3b41d95c48ccf46ef1252b /lib/oxidized | |
parent | e8470e4376bda36c2550ffa72e86f87d84c9db3f (diff) |
Procurve remove secret
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/procurve.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 9095d4a..e667f48 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -21,6 +21,13 @@ class Procurve < Oxidized::Model cfg = cfg.gsub /^\r/, '' end + cmd :secret do |cfg| + cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>' + cfg.gsub! /^(snmp-server host).*/, '\\1 <configuration removed>' + cfg.gsub! /^(radius-server host).*/, '\\1 <configuration removed>' + cfg + end + cmd 'show version' do |cfg| comment cfg end |