> 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-device-manager.md).

# HP Device Manager

HP Device Manager manages HP thin clients. OctoXLabs connects to the Device Manager PostgreSQL database and reads the device table.

## Use cases

* List thin clients by operating system.

```
Adapters = hp-device-manager AND OS.Type = Windows
```

* Find thin clients that are not in your EDR.

```
Adapters = hp-device-manager AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                     | Port           | Protocol   |
| ------------------- | ------------------------------- | -------------- | ---------- |
| OctoXLabs connector | HP Device Manager database host | 5432 (default) | PostgreSQL |

### Required permissions

| Scope or role | Permission                                        | Needed for |
| ------------- | ------------------------------------------------- | ---------- |
| Database user | Read, Select, List on the Device Manager database | Devices    |

## Create credentials in HP Device Manager

{% stepper %}
{% step %}

### Choose the database user

Use a PostgreSQL user that can read the Device Manager database.
{% endstep %}

{% step %}

### Grant privileges

The user needs **Read**, **Select** and **List** privileges on the tables the adapter reads (`dm_devices`, `dm_grouping_path`).
{% endstep %}

{% step %}

### Note the connection values

Note the host, the port, the database name, the username and the password. Add the domain only if the user name must be prefixed with a domain.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                        |
| ------------- | -------- | ------- | ------- | ------------------------------------------------------------------ |
| IP            | Yes      | Text    | None    | Address of the database host.                                      |
| Port          | No       | Integer | `5432`  | Database port.                                                     |
| Domain        | No       | Text    | None    | Domain FQDN. When set, the user name is sent as `domain\username`. |
| Database      | Yes      | Text    | None    | Name of the database.                                              |
| Username      | Yes      | Text    | None    | Database user.                                                     |
| Password      | Yes      | Text    | None    | Password of the user.                                              |
| Query Timeout | No       | Integer | `60`    | Seconds before a query is stopped.                                 |

## Troubleshooting

| Error message | Cause                                                               | Fix                                                  |
| ------------- | ------------------------------------------------------------------- | ---------------------------------------------------- |
| Not verified  | The connector code does not define adapter specific error messages. | Run the connection test and check the connector log. |

## Change history
