core/rails/app/models/barclamp_ipmi/ipmi_hammer.rb
# See if a node can be managed via IPMI.
# To be manageable via IPMI, it must have an ipmi-configure role bound to
# it that has sucessfully configured.
See if a node can be managed via IPMI.
To be manageable via IPMI, it must have an ipmi-configure role bound to
it that has sucessfully configured.
See if a node can be managed via IPMI . To be manageable via IPMI it must have an ipmi - configure role bound to it that has sucessfully configured .
def invoke(*args)
    Rails.logger.debug("IPMI: invoke: start")
    @lanproto ||= Attrib.get('ipmi-version',node).to_f >= 2.0 ? "lanplus" : "lan"
    cmd = "ipmitool -I #{@lanproto} -U #{username} -P #{authenticator} -H #{endpoint} #{args.map{|a|a.to_s}.join(' ')}"
    res = %x{ #{cmd} 2>&1}
    Rails.logger.debug("IPMI: invoke: result: #{res}")
    return [res, $?.exitstatus == 0]
  end
def invoke ( * args ) Rails . logger . debug ( "IPMI: invoke: start" ) @lanproto ||= Attrib . get ( 'ipmi-version' , node ) . to_f >= 2.0 ? "lanplus" : "lan" cmd = "ipmitool -I #{@lanproto} -U #{username} -P #{authenticator} -H #{endpoint} #{args.map{|a|a.to_s}.join(' ')}" res = %x{ #{ cmd }  2>&1 } Rails . logger . debug ( "IPMI: invoke: result: #{res}" ) return [ res , $? . exitstatus == 0 ] end
See if a node can be managed via IPMI.
See if a node can be managed via IPMI .
args
<not_specific>