HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/discovery/describe-agents.rst
**Describe agents with specified collectionStatus states**

This example command describes collection agents with collection status of "STARTED" or "STOPPED".

Command::

  aws discovery describe-agents --filters name="collectionStatus",values="STARTED","STOPPED",condition="EQUALS" --max-results 3

Output::

  {
         "Snapshots": [
  	{
              "version": "1.0.40.0",
              "agentType": "EC2",
              "hostName": "ip-172-31-40-234",
              "collectionStatus": "STOPPED",
              "agentNetworkInfoList": [
                  {
                      "macAddress": "06:b5:97:14:fc:0d",
                      "ipAddress": "172.31.40.234"
                  }
              ],
              "health": "UNKNOWN",
              "agentId": "i-003305c02a776e883",
              "registeredTime": "2016-12-09T19:05:06Z",
              "lastHealthPingTime": "2016-12-09T19:05:10Z"
          },
          {
              "version": "1.0.40.0",
              "agentType": "EC2",
              "hostName": "ip-172-31-39-64",
              "collectionStatus": "STARTED",
              "agentNetworkInfoList": [
                  {
                      "macAddress": "06:a1:0e:c7:b2:73",
                      "ipAddress": "172.31.39.64"
                  }
              ],
              "health": "SHUTDOWN",
              "agentId": "i-003a5e5e2b36cf8bd",
              "registeredTime": "2016-11-16T16:36:25Z",
              "lastHealthPingTime": "2016-11-16T16:47:37Z"
          }
      ]
  }