class Rubyipmi::Ipmitool::ChassisConfig

Public Class Methods

new(opts = ObservableHash.new) click to toggle source
Calls superclass method Rubyipmi::BaseCommand.new
# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 5
def initialize(opts = ObservableHash.new)
  super("ipmitool", opts)

end

Public Instance Methods

bootbios(persistent=true) click to toggle source

shortcut to boot into bios setup

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 51
def bootbios(persistent=true)
  bootdevice("bios",persistent)
end
bootcdrom(persistent=true) click to toggle source

shortcut to set boot device to cdrom

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 46
def bootcdrom(persistent=true)
  bootdevice("cdrom",persistent)
end
bootdevice() click to toggle source

Get the current boot device

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 11
def bootdevice
   # Not available with ipmitool
   false
end
bootdevices() click to toggle source

Get list of available boot devices

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 29
def bootdevices
  # ideally we should get this list from the ipmidevice
  # However ipmitool only has a static list
  ["pxe", "disk", "safe", "diag", "cdrom", "bios", "floppy"]
end
bootdisk(persistent=true) click to toggle source

shortcut to set boot device to disk

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 41
def bootdisk(persistent=true)
  bootdevice("disk",persistent)
end
bootpxe(persistent=true) click to toggle source

shortcut to set boot device to pxe

# File lib/rubyipmi/ipmitool/commands/chassisconfig.rb, line 36
def bootpxe(persistent=true)
  bootdevice("pxe",persistent)
end