def show_agent(agent_name)
      res = false
      if (pid_file = AgentConfig.pid_file(agent_name)) && (pid = pid_file.read_pid[:pid])
        pgid = Process.getpgid(pid) rescue -1
        name = human_readable_name(agent_name, pid_file.identity)
        if pgid != -1
          message = "#{name} is alive"
          unless RightScale::Platform.windows?
            # Windows Platform code currently does not support retrieving memory usage
            # information for another process, so only include it for linux
            psdata = `ps up #{pid}`.split("\n").last.split
            memory = (psdata[5].to_i / 1024)
            message << ", using #{memory}MB of memory"
          end
          puts message
          res = true
        else
          puts "#{name} is not running but has a stale pid file at #{pid_file}"
        end
      elsif (identity = AgentConfig.agent_options(agent_name)[:identity])
        puts "#{human_readable_name(agent_name, identity)} is not running"
      end
      res
    end
def show_agent(agent_name)
      res = false
      if (pid_file = AgentConfig.pid_file(agent_name)) && (pid = pid_file.read_pid[:pid])
        pgid = Process.getpgid(pid) rescue -1
        name = human_readable_name(agent_name, pid_file.identity)
        if pgid != -1
          message = "#{name} is alive"
          unless RightScale::Platform.windows?
            # Windows Platform code currently does not support retrieving memory usage
            # information for another process, so only include it for linux
            psdata = `ps up #{pid}`.split("\n").last.split
            memory = (psdata[5].to_i / 1024)
            message << ", using #{memory}MB of memory"
          end
          puts message
          res = true
        else
          puts "#{name} is not running but has a stale pid file at #{pid_file}"
        end
      elsif (identity = AgentConfig.agent_options(agent_name)[:identity])
        puts "#{human_readable_name(agent_name, identity)} is not running"
      end
      res
    end
Show status of agent

 === Parameters
 agent_name(String):: Agent name

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