diff options
author | ytti <saku@ytti.fi> | 2017-07-01 10:53:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-01 10:53:09 +0300 |
commit | c7682cf1743b6ff3627e6350f4413bd66faa9fd1 (patch) | |
tree | 39d7bbdbf0e2d01219e982c476c60fad755f8639 /lib/oxidized | |
parent | dc425ce5bc3143cf4b8322602d7b7521aca37134 (diff) | |
parent | 6ee139fdd44d4a98ee6b36487c76851d77e6d034 (diff) |
Merge pull request #884 from davama/master
Procurve: Adding More 'show' commands
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/procurve.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 7dcf1fd..180b703 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -30,6 +30,7 @@ class Procurve < Oxidized::Model 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.gsub! /^(radius-server key).*/, '\\1 <configuration removed>' cfg end @@ -37,6 +38,18 @@ class Procurve < Oxidized::Model comment cfg end + cmd 'show modules' do |cfg| + comment cfg + end + + cmd 'show interfaces transceiver' do |cfg| + comment cfg + end + + cmd 'show flash' do |cfg| + comment cfg + end + # not supported on all models cmd 'show system-information' do |cfg| cfg = cfg.split("\n")[0..-8].join("\n") |