Sha256: 538ea94cf96d93b3fd894b0c68faa9795f966187e2044d7316f8a2a9f79e53c2

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

class AudioCodesMP < Oxidized::Model
  using Refinements

  # 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

3 entries across 3 versions & 1 rubygems

Version Path
oxidized-0.30.1 lib/oxidized/model/audiocodesmp.rb
oxidized-0.30.0 lib/oxidized/model/audiocodesmp.rb
oxidized-0.29.1 lib/oxidized/model/audiocodesmp.rb