> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agents Count

Get the count of agents that match a filter. This command is useful to run before you run other commands.
You will be able to manage agent maintenance better if you know how many agents will get a command that takes time.

## Basic Parameters

<div className="integrations-table">
  | Parameter      | Description                                                    |
  | -------------- | -------------------------------------------------------------- |
  | Active Threats | Include agents with this amount of active threats. Example: 3. |
  | Is Active      | Include only active agents.                                    |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                       |
  | ---------------------- | --------------------------------------------------------------------------------- |
  | Account IDs            | List of account IDs to filter by. Example: 225494730938493804,225494730938493915. |
  | Active Directory Query | An Active Directory query string. Example: CN=Managers,DC=sentinelone,DC=com.     |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"total": 0
	}
}
```

## Workflow Library Example

[Get Agents Count with Sentinelone and Send Results Via Email](https://library.blinkops.com/workflows/get-agents-count-with-sentinelone-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-agents-count-with-sentinelone-and-send-results-via-email/canvas" />
</div>
