Sha256: 2d4ac81e9808fd83aa423460e8d9ece3d68ba1a22f130360b62c402443d1c900

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

class LANCOM < Oxidized::Model
  using Refinements

  # LANCOM Systems GmbH
  # tested on LANCOM 1781EF+ router using Lancom OS 10.32.0176RU9 / 21.04.2020
  comment '# '

  prompt />\s?$/

  cmd "sysinfo\r" do |cfg|
    cfg.gsub! /^TIME:.*\n/, ''
    comment cfg
  end

  cmd "readscript\r"

  cfg :telnet do
    username  /login:\s/
    password  /^Password:\s/
  end

  cfg :telnet, :ssh do
    pre_logout "exit\r"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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