Class: AOSW
Instance Attribute Summary
#input, #node
Instance Method Summary
collapse
cfg, #cfg, cfgs, cmd, #cmd, cmds, comment, #comment, expect, #expect, expects, #expects, #get, inherited, #output, post, pre, prompt, #prompt, #screenscrape, #send, #xmlcomment
#vars
Instance Method Details
#clean(cfg) ⇒ Object
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# File 'lib/oxidized/model/aosw.rb', line 107
def clean(cfg)
out = []
cfg.each_line do |line|
next if line =~ /Output \d Config/i
next if line =~ /(Tachometers|Temperatures|Voltages)/
next if line =~ /((Card|CPU) Temperature|Chassis Fan|VMON1[0-9])/
next if line =~ /[0-9]+\s+(RPMS?|m?V|C)/i
out << line.strip
end
out = out.join "\n"
out << "\n"
end
|
#rstrip_cfg(cfg) ⇒ Object
98
99
100
101
102
103
104
105
|
# File 'lib/oxidized/model/aosw.rb', line 98
def rstrip_cfg(cfg)
out = []
cfg.each_line do |line|
out << line.rstrip
end
out = out.join "\n"
out << "\n"
end
|