Get information about an agent

When to use:

To get agent metrics including state of the active threads, connections, memory consumed, and session information.

Query:
# Tokens: AGENT_ID
# Get agent metrics
{"O":"PASOE:type=OEManager,name=AgentManager","M":["getAgentMetrics","16952"]}
Note: In this example, the token AGENT_ID is replaced with 16952.
Result:

Returns agent metrics:

{
  "getAgentMetrics": {
    "AgentStatHist": [
      {
        "ActiveThreads": 1,
        "OpenConnections": 1,
        "ExitedSessions": 0,
        "ExitedThreads": 0,
        "CStackMemory": 2097152,
        "ClosedConnections": 0,
        "OverheadMemory": 5299105,
        "ActiveSessions": 2
      }
    ]
  }
}