From 13d89b7e1a4f91728e528a5290779bcf4b645a6a Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Mon, 26 Oct 2015 15:02:09 -0400 Subject: strip temprature and speed measurement from chassis environment output --- lib/oxidized/model/junos.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/, '' + cfg.gsub! /Spinning at \S+/, '' + 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 } -- cgit v1.2.1