summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorDave <davama@gmail.com>2017-07-11 14:19:47 -0400
committerGitHub <noreply@github.com>2017-07-11 14:19:47 -0400
commit693ec1173ae92fa959d058ed152ad693d28b6417 (patch)
tree7568b09c56fca6056ae967ce212c9dce23f28495 /lib/oxidized
parentca29fa8b84998d15b609e1aea01f096a3a77554c (diff)
Add show command
also added radius key redaction
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/ciscosmb.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb
index e5501d5..5ddcfcb 100644
--- a/lib/oxidized/model/ciscosmb.rb
+++ b/lib/oxidized/model/ciscosmb.rb
@@ -16,12 +16,17 @@ class CiscoSMB < Oxidized::Model
cmd :secret do |cfg|
cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>'
+ cfg.gsub! /^(encrypted radius-server key).*/, '\\1 <configuration removed>'
cfg
end
cmd 'show version' do |cfg|
comment cfg
end
+
+ cmd 'show bootvar' do |cfg|
+ comment cfg
+ end
cmd 'show running-config' do |cfg|
cfg = cfg.each_line.to_a[0..-1].join