def request_log_level(agent_name, command, options)
      res = false
      config_options = AgentConfig.agent_options(agent_name)
      unless config_options.empty? || (listen_port = config_options[:listen_port]).nil?
        fail("Could not retrieve #{agent_name} agent listen port") unless listen_port
        client = CommandClient.new(listen_port, config_options[:cookie])
        begin
          client.send_command(command, options[:verbose], timeout = 5) do |level|
            puts "Agent #{agent_name} log level: #{level.to_s.upcase}"
          end
          res = true
        rescue Exception => e
          puts "Command #{command.inspect} to #{agent_name} agent failed (#{e})"
        end
      end
      res
    end
def request_log_level(agent_name, command, options)
      res = false
      config_options = AgentConfig.agent_options(agent_name)
      unless config_options.empty? || (listen_port = config_options[:listen_port]).nil?
        fail("Could not retrieve #{agent_name} agent listen port") unless listen_port
        client = CommandClient.new(listen_port, config_options[:cookie])
        begin
          client.send_command(command, options[:verbose], timeout = 5) do |level|
            puts "Agent #{agent_name} log level: #{level.to_s.upcase}"
          end
          res = true
        rescue Exception => e
          puts "Command #{command.inspect} to #{agent_name} agent failed (#{e})"
        end
      end
      res
    end
Send log level request to agent

 === Parameters
 agent_name(String):: Agent name
 command(String):: Command request
 options(Hash):: Command line options

 === Return
 (Boolean):: true if agent running, otherwise false