diff options
author | Dave <davama@gmail.com> | 2018-01-31 16:49:52 -0500 |
---|---|---|
committer | Neil Lathwood <neil@lathwood.co.uk> | 2018-01-31 21:49:52 +0000 |
commit | 2726fff67ded963e24776e60f1e8976ae2bb037b (patch) | |
tree | 78b6c1fc17356e355bc96e1ee69c0bd47be07468 /lib/oxidized | |
parent | d6456bf490e71c7e3f453497641ff5c7952a018e (diff) |
model: Add show system command to ciscosmb (#1165)
* Add show commands to ciscosmb
* Update ciscosmb.rb
Uptime changes which cause oxidized to update config.
Removing line from final config output
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/ciscosmb.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index 9453059..deb4768 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -17,6 +17,7 @@ class CiscoSMB < Oxidized::Model 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.gsub! /System Up Time.*/, '' cfg end @@ -24,6 +25,10 @@ class CiscoSMB < Oxidized::Model comment cfg end + cmd 'show system' do |cfg| + comment cfg + end + cmd 'show bootvar' do |cfg| comment cfg end |