Rubyipmi::Ipmitool::Fru

Public Class Methods

new(opts = ObservableHash.new) click to toggle source
# File lib/rubyipmi/ipmitool/commands/fru.rb, line 5
def initialize(opts = ObservableHash.new)
  super("ipmitool", opts)
end

Public Instance Methods

list() click to toggle source

return the list of fru information in a hash

# File lib/rubyipmi/ipmitool/commands/fru.rb, line 10
def list
  @list ||= parse(command)
end
manufacturer() click to toggle source

returns the manufacturer of the server

# File lib/rubyipmi/ipmitool/commands/fru.rb, line 20
def manufacturer
   list["product_manufacturer"]
end
product() click to toggle source

returns the product name of the server

# File lib/rubyipmi/ipmitool/commands/fru.rb, line 25
def product
   list["product_name"]
end
serial() click to toggle source

returns the serial of the board

# File lib/rubyipmi/ipmitool/commands/fru.rb, line 15
def serial
   list["board_serial"]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.