boot into bios setup with option to reboot
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 79 def bootbios(reboot=false,persistent=false) bootstatus = config.bootbios(persistent) # Only reboot if setting the boot flag was successful if reboot and bootstatus power.cycle end end
set boot device to cdrom with option to reboot
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 70 def bootcdrom(reboot=false,persistent=false) bootstatus = config.bootcdrom(persistent) # Only reboot if setting the boot flag was successful if reboot and bootstatus power.cycle end end
set boot device from given boot device
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 38 def bootdevice(device, reboot=false, persistent=false) if config.bootdevices.include?(device) bootstatus = config.bootdevice(device, persistent) if reboot and bootstatus power.cycle end else raise "Device with name: #{device} is not a valid boot device for host #{options["hostname"]}" end end
set boot device to disk with option to reboot
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 60 def bootdisk(reboot=false,persistent=false) bootstatus = config.bootdisk(persistent) # Only reboot if setting the boot flag was successful if reboot and bootstatus power.cycle end end
set boot device to pxe with option to reboot
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 51 def bootpxe(reboot=false,persistent=false) bootstatus = config.bootpxe(persistent) # Only reboot if setting the boot flag was successful if reboot and bootstatus power.cycle end end
Access to the config command created on the fly
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 33 def config @config ||= Rubyipmi::Freeipmi::ChassisConfig.new(@options) end
Turn the led light on / off or with a delay
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 11 def identify(status=false, delay=0) if status if delay <= 0 options["chassis-identify"] = "FORCE" else options["chassis-identify"] = delay end else options["chassis-identify"] = "TURN-OFF" end # Run the command value = runcmd options.delete_notify("chassis-identify") return value end
A currently unsupported method to retrieve the led status
# File lib/rubyipmi/freeipmi/commands/chassis.rb, line 100 def identifystatus # TODO implement this function # parse out the identify status # status.result end
Generated with the Darkfish Rdoc Generator 2.