> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/aruba-clearpass.md).

# Aruba ClearPass

Aruba ClearPass is a network access control and policy platform. OctoXLabs reads its endpoints with their profiler fingerprint and, optionally, guest users.

## Use cases

* Find ClearPass guest users that have no match in your directory.

```
Adapters = aruba-clearpass AND NOT Adapters = active-directory
```

* Find devices that Aruba ClearPass reports but your EDR does not cover.

```
Adapters = aruba-clearpass AND NOT Adapters = falcon-crowdstrike
```

* Review devices that Aruba ClearPass has not seen recently.

```
Adapters = aruba-clearpass AND NOT LastSeen last now-30d/d
```

* Check what one Aruba ClearPass connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                 | Port                | Protocol                                 |
| ------------------- | --------------------------- | ------------------- | ---------------------------------------- |
| OctoXLabs connector | Aruba ClearPass server (IP) | 6506 (configurable) | HTTPS, or HTTP when Is Secure is cleared |

### Required permissions

| Scope or role                                                                                    | Permission | Needed for                                |
| ------------------------------------------------------------------------------------------------ | ---------- | ----------------------------------------- |
| API client with the ClearPass REST API operation mode and the IT Administrators operator profile | Read       | Endpoints, device fingerprints and guests |

## Create credentials in Aruba ClearPass

{% stepper %}
{% step %}

### Sign in

Log in to Aruba ClearPass as the `admin` user.
{% endstep %}

{% step %}

### Open API Clients

Go to **Administration** > **API Services** > **API Clients**.
{% endstep %}

{% step %}

### Create the client

Create a client with the **ClearPass REST API** operation mode, **IT Administrators** as the operator profile and **Client Credentials** as the grant type. The recommended access token lifetime is 1 hour.
{% endstep %}

{% step %}

### Copy the credentials

Copy the Client ID and the Client Secret.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type    | Default | Description                                                                                                       |
| --------------------- | -------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
| IP                    | Yes      | String  | None    | IP address of ClearPass.                                                                                          |
| Port                  | No       | Integer | 6506    | API port.                                                                                                         |
| Client ID             | Yes      | String  | None    | Client ID of the API client.                                                                                      |
| Client Secret         | Yes      | String  | None    | Client Secret of the API client.                                                                                  |
| Is Secure             | No       | Boolean | True    | Use HTTPS. Clear it to use HTTP.                                                                                  |
| Fetch Users           | No       | Boolean | False   | Also fetch guest users.                                                                                           |
| Users Created After   | No       | String  | None    | Only users created on or after this date (`DD/MM/YYYY`, from `create_time`). Applies only when Fetch Users is on. |
| Devices Updated After | No       | String  | None    | Only devices updated on or after this date (`DD/MM/YYYY`, from `updated_at`).                                     |
| Per Page              | No       | Integer | 500     | Items per request. Minimum 1, maximum 1000.                                                                       |
| Timeout               | No       | Integer | 30      | Time in seconds to wait for API responses.                                                                        |
| Thread Count          | No       | Integer | 32      | Parallel threads. Minimum 1, maximum 32. More threads use more resources and network.                             |
| Sleep Time            | No       | Integer | 0       | Seconds to wait while threads are started.                                                                        |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Failed to fetch endpoint list:                                         | The endpoint list call returned a status other than 200.               | Check the API client and its operator profile.                                                                                                |
| Failed to fetch users:                                                 | The guest list call returned a status other than 200.                  | Check that the API client may read guests.                                                                                                    |
| users\_created\_after must be in DD/MM/YYYY format.                    | The date has a different format.                                       | Use DD/MM/YYYY, for example 01/06/2023.                                                                                                       |
| devices\_updated\_after must be in DD/MM/YYYY format.                  | The date has a different format.                                       | Use DD/MM/YYYY, for example 01/06/2023.                                                                                                       |
| Request failed after 5 retries for url                                 | The API kept answering 403 or 429.                                     | Check the client and wait for the rate limit to clear.                                                                                        |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 4.3.0.
{% endhint %}
