From f553488701e2bfd08367f53e51f09d480ab12cbd Mon Sep 17 00:00:00 2001 From: "K. Gasso" Date: Fri, 3 Feb 2017 14:33:12 -0800 Subject: Update fabricos.rb Ignore Uptime/Power/Date fields in chassisShow and configShow --- lib/oxidized/model/fabricos.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/fabricos.rb b/lib/oxidized/model/fabricos.rb index 7ab9fd5..e6d921e 100644 --- a/lib/oxidized/model/fabricos.rb +++ b/lib/oxidized/model/fabricos.rb @@ -7,10 +7,11 @@ class FabricOS < Oxidized::Model comment '# ' cmd 'chassisShow' do |cfg| - comment cfg + comment cfg.each_line.reject { |line| line.match /Time Awake:/ or line.match /Power Usage \(Watts\):/ or line.match /Time Alive:/ or line.match /Update:/ }.join end cmd 'configShow -all' do |cfg| + cfg = cfg.each_line.reject { |line| line.match /date = /}.join cfg end -- cgit v1.2.1