Sha256: 853aaa006252fb8991923c5e90a9b048bea0defe6dd1f364683d790e7fcc822a

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

class Enterasys800 < Oxidized::Model
  # Enterasys 800 models #
  # Tested with 08H20G4-24 Fast Ethernet Switch Firmware: Build 01.01.01.0017
  comment '# '

  prompt /([\w \(:.@-]+[#>]\s?)$/

  cfg :telnet do
    username /UserName:/
    password /PassWord:/
  end

  cfg :telnet do
    post_login 'disable clipaging'
  end

  cfg :telnet do
    pre_logout 'logout'
  end

  cmd :all do |cfg|
    cfg = cfg.cut_both
    cfg = cfg.gsub /^[\r\n]|^\s\s\s/, ''
    cfg = cfg.gsub /Command: show config effective/, ''
    cfg
  end

  cmd 'show config effective'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/enterasys800.rb