class Rubyipmi::Freeipmi::Bmc
Attributes
config[RW]
attr_accessor :options
Public Class Methods
new(opts = ObservableHash.new)
click to toggle source
Calls superclass method
Rubyipmi::BaseCommand.new
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 8 def initialize(opts = ObservableHash.new) super("bmc-device", opts) @bmcinfo = {} end
Public Instance Methods
device()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 48 def device @bmcdevice ||= Rubyipmi::Freeipmi::BmcDevice.new(options) end
guid()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 32 def guid information.guid end
info()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 20 def info if @bmcinfo.length > 0 @bmcinfo else information.retrieve end end
information()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 44 def information @info ||= Rubyipmi::Freeipmi::BmcInfo.new(options) end
lan()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 40 def lan @lan ||= Rubyipmi::Freeipmi::Lan.new(options) end
reset(type='cold')
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 28 def reset(type='cold') device.reset(type) end
version()
click to toggle source
# File lib/rubyipmi/freeipmi/commands/bmc.rb, line 13 def version @options['version'] = false value = runcmd @options.delete_notify('version') @result.slice(/\d\.\d.\d/) end