summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index a216126..275625e 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -21,6 +21,10 @@ class IOS < Oxidized::Model
cfg.each_line.to_a[1..-3].join
end
+ cmd 'show inventory' do |cfg|
+ comment cfg
+ end
+
cmd 'show running-config' do |cfg|
cfg = cfg.each_line.to_a[3..-1].join
cfg.gsub! /^Current configuration : [^\n]*\n/, ''
@@ -31,10 +35,6 @@ class IOS < Oxidized::Model
cfg
end
- cmd 'show inventory' do |cfg|
- comment cfg
- end
-
cfg :telnet do
username /^Username:/
password /^Password:/