From ba6b0f9fb3d0276b4dfe795b878c4712233e342b Mon Sep 17 00:00:00 2001 From: rivo nurges Date: Tue, 28 Apr 2015 08:21:10 +0000 Subject: Skip Datetime and Uptime from system information --- lib/oxidized/model/screenos.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1