diff options
Diffstat (limited to 'lib')
-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 |