def get_instance_state_agent_command(opts)
      result = RightScale::InstanceState.value
      CommandIO.instance.reply(opts[:conn], JSON.dump({ :result => result }) )
    rescue Exception => e
      CommandIO.instance.reply(opts[:conn], JSON.dump({ :error => e.message }) )
    end
def get_instance_state_agent_command(opts)
      result = RightScale::InstanceState.value
      CommandIO.instance.reply(opts[:conn], JSON.dump({ :result => result }) )
    rescue Exception => e
      CommandIO.instance.reply(opts[:conn], JSON.dump({ :error => e.message }) )
    end
Get Instance State value for Agent type

 === Parameters
 opts[:conn](EM::Connection):: Connection used to send reply

 === Return
 true:: Always return true