diff options
-rw-r--r-- | lib/oxidized/model/junos.rb | 13 | ||||
-rw-r--r-- | oxidized-0.8.1.gem | bin | 41472 -> 0 bytes |
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 949a757..a02d588 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -47,9 +47,18 @@ class JunOS < Oxidized::Model comment cfg end cmd('show chassis firmware') { |cfg| comment cfg } - cmd('show chassis fpc detail') { |cfg| comment cfg } + cmd('show chassis fpc detail') do |cfg| + cfg.gsub!(/(Temperature\s+)(\d+)(.+)/, '\1<stripped>\3') + cfg.gsub!(/(\s+\d+ days,)(.+seconds)/, '\1 <stripped>\3') + comment cfg + end cmd('show chassis hardware detail') { |cfg| comment cfg } - cmd('show chassis routing-engine') { |cfg| comment cfg } + cmd('show chassis routing-engine') do |cfg| + cfg.gsub!(/(\S+\s+)(\d+)( percent)/, '\1<stripped>\3') + cfg.gsub!(/(\s+\d+ days,)(.+seconds)/, '\1 <stripped>\3') + cfg.gsub!(/(\s+)(\d+\.\d+)(\s+)(\d+\.\d+)(\s+)(\d+\.\d+)/, '\1<stripped>\3<stripped>\5<stripped>') + comment cfg + end cmd('show chassis alarms') { |cfg| comment cfg } cmd('show system license') { |cfg| comment cfg } cmd('show system boot-messages') { |cfg| comment cfg } diff --git a/oxidized-0.8.1.gem b/oxidized-0.8.1.gem Binary files differdeleted file mode 100644 index c778eb7..0000000 --- a/oxidized-0.8.1.gem +++ /dev/null |