# File lib/wsman.rb, line 525
  def get_current_and_pending_bootmode
    current_mode = nil
    pending_mode = nil

    begin
      output = self.command(
        ENUMERATE_CMD,
        BIOS_ENUM_URI,
        " -m 512 --dialect \"http://schemas.dmtf.org/wbem/cql/1/dsp0202.pdf\" --filter \"select * from DCIM_BIOSEnumeration where AttributeName='BootMode'\" "
      )

      if output
        wsInstance = self.process_response(output, '["Body"]["EnumerateResponse"]["Items"]')
        current_mode = wsInstance["DCIM_BIOSEnumeration"]["CurrentValue"]
        pending_mode = wsInstance["DCIM_BIOSEnumeration"]["PendingValue"]
      else
        puts "No data returned from enumeration of boot mode attribute"
      end
    rescue Exception => e
      puts "Exception determining boot mode...#{e.message}"
    end

    [current_mode, pending_mode]
  end