summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorK. Gasso <kgasso@users.noreply.github.com>2017-02-03 14:33:12 -0800
committerGitHub <noreply@github.com>2017-02-03 14:33:12 -0800
commitf553488701e2bfd08367f53e51f09d480ab12cbd (patch)
treec5ff03bb0cadf4c80b227dbf52f8d5c7c47543d1 /lib/oxidized/model
parent408e192999e9c414da35a23de199de99c07e7a6a (diff)
Update fabricos.rb
Ignore Uptime/Power/Date fields in chassisShow and configShow
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/fabricos.rb3
1 files changed, 2 insertions, 1 deletions
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