# File lib/wsman.rb, line 186
  def is_RS_ready?
    lc_svc_uri = find_instance_uri(LC_SVC_CLASS)
    output = self.command("invoke -a GetRSStatus", lc_svc_uri)

    return false unless output

    hash = XmlSimple.xml_in(output, "ForceArray" => false)
    t = hash["Body"]

    if t["Fault"]
      return false, t["Fault"]
    end

    if t["GetRSStatus_OUTPUT"]["ReturnValue"].instance_of? Hash
      return true, "Ready"
    end

    if t["GetRSStatus_OUTPUT"]["ReturnValue"] != "0"
      return false, t["GetRSStatus_OUTPUT"]["Message"]
    end

    status = t["GetRSStatus_OUTPUT"]["Status"]
    puts "Status from getrsstatus is #{status}"

    return status == "Ready", status
  end