Sha256: d962f39e948c04a982a725b61c5a5a7e6a7fe68910b736506d78af29b4c3ad71
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
class FabricOS < Oxidized::Model # Brocade Fabric OS model # ## FIXME: Only ssh exec mode support, no telnet, no ssh screenscraping prompt /^([\w]+:+[\w]+[>]\s)$/ comment '# ' cmd 'chassisShow' do |cfg| comment cfg.each_line.reject { |line| line.match(/Time Awake:/) || line.match(/Power Usage \(Watts\):/) || line.match(/Power Usage:/) || line.match(/Time Alive:/) || line.match(/Update:/) }.join end cmd 'configShow -all' do |cfg| cfg = cfg.each_line.reject { |line| line.match /date = / }.join cfg end cfg :ssh do exec true # don't run shell, run each command in exec channel end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.29.0 | lib/oxidized/model/fabricos.rb |