From 51476cf2a8dd8738ebe631015c8c52ee4aea0d39 Mon Sep 17 00:00:00 2001 From: Ultra2D Date: Wed, 9 Mar 2016 14:27:50 +0100 Subject: Procurve remove secret --- lib/oxidized/model/procurve.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 ' + cfg.gsub! /^(snmp-server host).*/, '\\1 ' + cfg.gsub! /^(radius-server host).*/, '\\1 ' + cfg + end + cmd 'show version' do |cfg| comment cfg end -- cgit v1.2.1