summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiev@shopify.com>2015-10-26 15:02:09 -0400
committerElvin Efendi <elvin.efendiev@shopify.com>2015-11-23 11:21:51 -0500
commit13d89b7e1a4f91728e528a5290779bcf4b645a6a (patch)
treed5f08e4de55d35eff82d69142707c6ea54ba7909 /lib/oxidized/model
parenta54574ee01060097259adc22413efe1853b83bbb (diff)
strip temprature and speed measurement from chassis environment output
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/junos.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb
index 2572b93..6ba18ad 100644
--- a/lib/oxidized/model/junos.rb
+++ b/lib/oxidized/model/junos.rb
@@ -41,7 +41,11 @@ class JunOS < Oxidized::Model
out
end
- cmd('show chassis environment') { |cfg| comment cfg }
+ cmd('show chassis environment') do |cfg|
+ cfg.gsub! /\d+ degrees.* F/, '<measurement stripped>'
+ cfg.gsub! /Spinning at \S+/, '<measurement stripped>'
+ comment cfg
+ end
cmd('show chassis firmware') { |cfg| comment cfg }
cmd('show chassis fpc detail') { |cfg| comment cfg }
cmd('show chassis hardware detail') { |cfg| comment cfg }