summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/ios.rb4
-rw-r--r--lib/oxidized/model/junos.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 186c9e8..d2b4996 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -28,6 +28,10 @@ class IOS < Oxidized::Model
cfg
end
+ cmd 'show version' do |cfg|
+ comment cfg.lines.first
+ end
+
cmd 'show inventory' do |cfg|
comment cfg
end
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb
index 06d627f..70f0956 100644
--- a/lib/oxidized/model/junos.rb
+++ b/lib/oxidized/model/junos.rb
@@ -18,7 +18,7 @@ class JunOS < Oxidized::Model
cfg
end
- cmd 'show configuration'
+ cmd 'show configuration | display omit'
cmd 'show version' do |cfg|
@model = $1 if cfg.match /^Model: (\S+)/