Sha256: 2cfc3d7f3abc792d0be83ef7869ffb7fbc6374abb38117527052e0110a0de027

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

# Supporting Cisco Catalyst Express Switches and IOS using the basic web interface
class CiscoCE < Oxidized::Model
  cmd "/level/15/exec/-/show/startup-config" do |cfg|
    output = cfg.gsub(/\A.+<DL>(.+)<\/DL>.+\z/m, '\1') # Strip configuration file from within HTML response.
    output
  end

  cfg :http do
    @username = @node.auth[:username]
    @password = @node.auth[:password]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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