Sha256: c509123ac8974b548f00cda495b73a06ddea5ba418267c7bbc0c8c45a0a51eeb
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
class Voss < Oxidized::Model # Extreme/Avaya VSP Operating System Software(VOSS) # Created by danielcoxman@gmail.com # March 16, 2019 # This was tested on vsp4k and vsp8k comment '# ' prompt /^[^\s#>]+[#>]$/ # needed for proper formatting after post_login cmd('') { |cfg| comment "#{cfg}\n" } # Get sys-info and remove information that changes such has temperature and power cmd 'show sys-info' do |cfg| cfg.gsub! /(^((.*)SysUpTime(.*))$)/, 'removed SysUpTime' cfg.gsub! /^((.*)Temperature Info :(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' cfg.gsub! /(^((.*)AmbientTemperature(.*):(.*))$)/, 'removed AmbientTemperature' cfg.gsub! /(^((.*)Last Change(.*):(.*))$)/, 'remove Last Change' cfg.gsub! /(^((.*)Last Statistic Reset(.*):(.*))$)/, 'removed Last Statistic Reset' cfg.gsub! /(^((.*)Last Vlan Change(.*):(.*))$)/, 'removed Last Vlan Change' cfg.gsub! /(^((.*)Temperature(.*):(.*))$)/, 'removed Temperature' cfg.gsub! /(^((.*)Total Power Usage(.*):(.*))$)/, 'removed Total Power Usage' comment "#{cfg}\n" end # more the config rather than doing a show run cmd 'more config.cfg' do |cfg| cfg.gsub! /^[^\s#>]+[#>]$/, '' cfg.gsub! /^more config.cfg/, '# more config.cfg' cfg end cfg :telnet do username /Login: $/ password /Password: $/ end cfg :telnet, :ssh do pre_logout 'exit' post_login 'enable' post_login 'terminal more disable' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.29.0 | lib/oxidized/model/voss.rb |
oxidized-0.28.0 | lib/oxidized/model/voss.rb |
oxidized-0.27.0 | lib/oxidized/model/voss.rb |