Sha256: 27000d84b5105de81e1ace0905914bd599fea7a84a7f41405ab8292fc53bbd16

Contents?: true

Size: 648 Bytes

Versions: 7

Compression:

Stored size: 648 Bytes

Contents

class AudioCodesMP < Oxidized::Model
  # AudioCodes MediaPack MP1xx and Mediant 1000 devices (firmware v4.xx, v5.xx, v6.xx) by pedjajks@gmail.com

  prompt /^\/\w*>/

  comment ';'

  cmd 'conf' do
  end

  cmd 'cf get' do |cfg|
    lines = cfg.each_line.to_a[0..-1]
    # remove any garbage before ';**************' and after '; End of INI file.'
    lines[lines.index(";**************\r\n")..lines.index("; End of INI file.\n")].join
  end

  cfg :ssh do
    username /^login as:\s$/
    password /^.+password:\s$/
    pre_logout 'exit'
  end

  cfg :telnet do
    username /login:\s$/
    password /password:\s$/
    pre_logout 'exit'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/audiocodesmp.rb
oxidized-0.28.0 lib/oxidized/model/audiocodesmp.rb
oxidized-0.27.0 lib/oxidized/model/audiocodesmp.rb
oxidized-0.26.3 lib/oxidized/model/audiocodesmp.rb
oxidized-0.26.2 lib/oxidized/model/audiocodesmp.rb
oxidized-0.26.1 lib/oxidized/model/audiocodesmp.rb
oxidized-0.26.0 lib/oxidized/model/audiocodesmp.rb