diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | lib/oxidized/model/voss.rb | 13 |
2 files changed, 10 insertions, 6 deletions
@@ -67,7 +67,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen * Aruba * [AOSW](lib/oxidized/model/aosw.rb) * Avaya - * [VOSS](lib/oxidized/model/voss.rb) + * [VOSS (VSP Operating System Software)](lib/oxidized/model/voss.rb) + * [BOSS (Baystack Operating System Software)](lib/oxidized/model/boss.rb) * Brocade * [FabricOS](lib/oxidized/model/fabricos.rb) * [Ironware](lib/oxidized/model/ironware.rb) diff --git a/lib/oxidized/model/voss.rb b/lib/oxidized/model/voss.rb index 075f001..599462a 100644 --- a/lib/oxidized/model/voss.rb +++ b/lib/oxidized/model/voss.rb @@ -1,22 +1,25 @@ class Voss < Oxidized::Model # Avaya VSP Operating System Software(VOSS) # Created by danielcoxman@gmail.com - # May 9, 2017 + # May 15, 2017 # This was tested on vsp4k and vsp8k comment '# ' prompt /^[^\s#>]+[#>]$/ - cmd 'show sys-info' do |cfg| - comment cfg - end + # needed for proper formatting after post_login + cmd('') { |cfg| comment "#{cfg}\n" } + # get some general information about switch + cmd('show sys-info card') { |cfg| comment "#{cfg}\n" } + cmd('show sys-info fan') { |cfg| comment "#{cfg}\n" } + cmd('show sys-info power') { |cfg| comment "#{cfg}\n" } # more the config rather than doing a show run cmd 'more config.cfg' do |cfg| cfg cfg.gsub! /^[^\s#>]+[#>]$/, '' - cfg.gsub! /^more config.cfg/, '' + cfg.gsub! /^more config.cfg/, '# more config.cfg' end cfg :telnet do |