# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 18 def count sensors.count end
# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 26 def fanlist(refreshdata=false) refresh if refreshdata flist = [] values = sensors.each do |sensor| match = sensor.first.match(/(fan)_(\d+)/) next if match.nil? if match[1] == "fan" num = (match[2].to_i) -1 flist[num] = sensor.last[:value] end end flist end
# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 14 def list sensors end
# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 22 def names sensors.keys end
# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 9 def refresh @sensors = nil sensors end
# File lib/rubyipmi/ipmitool/commands/sensors.rb, line 40 def templist(refreshdata=false) refresh if refreshdata tlist = [] values = sensors.each do |sensor| match = sensor.first.match(/(temp)_(\d+)/) next if match.nil? if match[1] == "temp" num = (match[2].to_i) -1 tlist[num] = sensor.last[:value] end end tlist end
Generated with the Darkfish Rdoc Generator 2.