summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorrivo nurges <rivo@surfar.ee>2015-04-28 08:21:10 +0000
committerrivo nurges <rivo@surfar.ee>2015-04-28 08:21:10 +0000
commitba6b0f9fb3d0276b4dfe795b878c4712233e342b (patch)
tree0c017267d66255efaf9f2e28c77358908661472f /lib/oxidized/model
parenteb753e2d8c19bd99ea36d8b0f492aaff5bb996bf (diff)
Skip Datetime and Uptime from system information
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/screenos.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb
index c13e64a..7ee9d9f 100644
--- a/lib/oxidized/model/screenos.rb
+++ b/lib/oxidized/model/screenos.rb
@@ -18,6 +18,8 @@ class ScreenOS < Oxidized::Model
end
cmd 'get system' do |cfg|
+ cfg.gsub! /^Date\ .*\n/, ''
+ cfg.gsub! /^Up\ .*\n/, ''
comment cfg
end