From 44e12af03d8b9971b4390e8c741bd3b2e0c1cec8 Mon Sep 17 00:00:00 2001 From: Tim Pozar Date: Mon, 20 Feb 2017 17:25:44 -0800 Subject: Added license information and gsub to take out chatty subscriber license updates. --- lib/oxidized/model/junos.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 058e3cf..2f59414 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -8,6 +8,7 @@ class JunOS < Oxidized::Model cmd :all do |cfg| cfg = cfg.lines.to_a[1..-2].join if screenscrape + cfg.gsub!(/ scale-subscriber (\s+)(\d+)/,' scale-subscriber ') cfg.lines.map { |line| line.rstrip }.join("\n") + "\n" end @@ -36,6 +37,8 @@ class JunOS < Oxidized::Model end cmd('show chassis hardware') { |cfg| comment cfg } + cmd('show system license') { |cfg| comment cfg } + cmd('show system license keys') { |cfg| comment cfg } cfg :telnet do username(/^login:/) -- cgit v1.2.1