> 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/h/hp-anyware.md).

# HP Anyware

HP Anyware (formerly Teradici Cloud Access Software) delivers remote workstations. OctoXLabs reads the remote workstations registered in Anyware Manager and, optionally, the Active Directory computers and users that the Anyware Connector synchronizes.

## Use cases

* List remote workstations known to HP Anyware.

```
Adapters = hp-anyware
```

* Find Anyware users that are members of a given group.

```
Adapters = hp-anyware AND MembersOf = "<group name>"
```

## Before you begin

### Network

| Source              | Destination                                                                      | Port | Protocol |
| ------------------- | -------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Anyware Manager (`cas.teradici.com` for the HP-hosted service, or your own host) | 443  | HTTPS    |

### Required permissions

| Scope or role              | Permission                                                   | Needed for        |
| -------------------------- | ------------------------------------------------------------ | ----------------- |
| Deployment Service Account | Read deployments, machines and Active Directory entitlements | Devices and Users |

## Create credentials in HP Anyware

{% stepper %}
{% step %}

### Open the deployment

In the Anyware Manager Admin Console edit the deployment.
{% endstep %}

{% step %}

### Create a service account

Open **Deployment Service Accounts** and create an account. A credentials file downloads.
{% endstep %}

{% step %}

### Copy the values

The file holds `username` and `apiKey`. Use them in OctoXLabs.
{% endstep %}

{% step %}

### Repeat per deployment

A Deployment Service Account reaches only the deployment it was created in. Create one account and one connection for each deployment you want to collect.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter          | Required | Type    | Default            | Description                                                                                                                        |
| ------------------ | -------- | ------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| Domain             | Yes      | Text    | `cas.teradici.com` | Anyware Manager address without `https://`. Keep the default for the HP-hosted service.                                            |
| Username           | Yes      | Text    | None               | `username` value of the Deployment Service Account.                                                                                |
| Api Key            | Yes      | Text    | None               | `apiKey` value from the credentials file.                                                                                          |
| Fetch AD Computers | No       | Boolean | `false`            | Collect Active Directory computers synchronized by the Anyware Connector. Matching workstations get their OS and domain from them. |
| Fetch AD Users     | No       | Boolean | `true`             | Collect Active Directory users synchronized by the Anyware Connector. Users without a user principal name are skipped.             |
| Page Size          | No       | Integer | `200`              | Records requested per call (minimum 1).                                                                                            |
| Proxy              | No       | Text    | None               | Proxy in `host:port` form.                                                                                                         |
| Timeout            | No       | Integer | `30`               | Seconds to wait for API responses.                                                                                                 |

## Troubleshooting

| Error message                                                     | Cause                                   | Fix                                                  |
| ----------------------------------------------------------------- | --------------------------------------- | ---------------------------------------------------- |
| `Status Code: 200\nURL: <url>\nNo token in the sign-in response.` | The sign-in call returned no token.     | Check the username and API key.                      |
| `Max retries exceeded for <url>`                                  | The API kept returning HTTP 401 or 429. | Check the credentials and run discovery again later. |

## Change history

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