Class: Rubyipmi::Ipmitool::ChassisConfig
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- BaseCommand
- Rubyipmi::Ipmitool::ChassisConfig
- Defined in:
- lib/rubyipmi/ipmitool/commands/chassisconfig.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
#cmd, #lastcall, #max_retry_count, #options, #passfile, #result
Instance Method Summary collapse
-
#bootbios(persistent = true) ⇒ Object
shortcut to boot into bios setup.
-
#bootcdrom(persistent = true) ⇒ Object
shortcut to set boot device to cdrom.
-
#bootdevice(device, persistent = false) ⇒ Object
Set the boot device.
-
#bootdevices ⇒ Object
Get list of available boot devices.
-
#bootdisk(persistent = true) ⇒ Object
shortcut to set boot device to disk.
-
#bootpxe(persistent = true) ⇒ Object
shortcut to set boot device to pxe.
-
#initialize(opts = ObservableHash.new) ⇒ ChassisConfig
constructor
A new instance of ChassisConfig.
Methods inherited from BaseCommand
#find_fix, #makecommand, #max_retry_count, #setpass
Methods inherited from BaseCommand
#dump_command, #find_fix, #locate_command, #makecommand, #removepass, #run, #runcmd, #setpass, #update, #validate_status
Constructor Details
#initialize(opts = ObservableHash.new) ⇒ ChassisConfig
Returns a new instance of ChassisConfig.
5 6 7 8 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 5 def initialize(opts = ObservableHash.new) super("ipmitool", opts) end |
Instance Method Details
#bootbios(persistent = true) ⇒ Object
shortcut to boot into bios setup
51 52 53 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 51 def bootbios(persistent=true) bootdevice("bios",persistent) end |
#bootcdrom(persistent = true) ⇒ Object
shortcut to set boot device to cdrom
46 47 48 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 46 def bootcdrom(persistent=true) bootdevice("cdrom",persistent) end |
#bootdevice(device, persistent = false) ⇒ Object
Set the boot device
11 12 13 14 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 11 def bootdevice # Not available with ipmitool false end |
#bootdevices ⇒ Object
Get list of available boot devices
29 30 31 32 33 |
# 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) ⇒ Object
shortcut to set boot device to disk
41 42 43 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 41 def bootdisk(persistent=true) bootdevice("disk",persistent) end |
#bootpxe(persistent = true) ⇒ Object
shortcut to set boot device to pxe
36 37 38 |
# File 'lib/rubyipmi/ipmitool/commands/chassisconfig.rb', line 36 def bootpxe(persistent=true) bootdevice("pxe",persistent) end |