> 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/f/flexera-it-asset-management.md).

# Flexera IT Asset Management

Flexera IT Asset Management tracks hardware and software assets and licenses. OctoXLabs connects to the Microsoft SQL Server database behind it and reads a view or a custom query, one row per device.

## Use cases

* **Find assets Flexera knows that no agent reports.** List devices from Flexera that the CrowdStrike inventory does not report.

```
Adapters = flexera-it-asset-management-adapter AND NOT Adapters = falcon-crowdstrike
```

* **Find assets missing from the directory.**

```
Adapters = flexera-it-asset-management-adapter AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                    | Port                  | Protocol         |
| ------------------- | ------------------------------ | --------------------- | ---------------- |
| OctoXLabs connector | SQL Server host (IP parameter) | 1433 (Port parameter) | TDS (SQL Server) |

With Kerberos, the connector also needs to reach the key distribution center (KDC IP parameter). The KDC port is Not verified.

### Required permissions

| Scope or role | Permission            | Needed for                                   |
| ------------- | --------------------- | -------------------------------------------- |
| Database user | Read, Select and List | Reading the view or running the custom query |

The baseline says the user needs **Read**, **Select** and **List** privileges.

## Create credentials in Flexera IT Asset Management

{% stepper %}
{% step %}

### Create a SQL Server login

In SQL Server Management Studio, select the authentication type used by the server, fill in the details, and choose your database as **Default Database**. Save the user.
{% endstep %}

{% step %}

### Sign in once

Sign in to the database with this user once to avoid a first-login error.
{% endstep %}

{% step %}

### Prepare a view

Create or pick a view that returns one row per device with canonical column names, or prepare a custom query. One of them is mandatory.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                | Required    | Type    | Default  | Description                                                                                                      |
| ------------------------ | ----------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| IP or Domain             | Yes         | String  | None     | Host of the SQL Server.                                                                                          |
| Port                     | No          | Integer | 1433     | SQL Server port.                                                                                                 |
| Domain                   | No          | String  | None     | Domain FQDN.                                                                                                     |
| Database                 | Yes         | String  | None     | Database name.                                                                                                   |
| Username                 | Yes         | String  | None     | Database user.                                                                                                   |
| Password                 | Conditional | String  | None     | Required for SQL authentication and for Kerberos mode `password`. Can be empty for Kerberos mode `keytab`.       |
| View Name                | Conditional | String  | None     | View to read with `SELECT * FROM <view>`.                                                                        |
| Custom Query             | Conditional | String  | None     | Query to run instead of the view. It takes priority over View Name.                                              |
| Query Timeout            | No          | Integer | 60       | Maximum seconds for a query.                                                                                     |
| Batch Size               | No          | Integer | 300      | Rows fetched per batch.                                                                                          |
| Use PyODBC Driver        | No          | Boolean | false    | Use PyODBC instead of pymssql. Needs ODBC Driver 17 or 18 for SQL Server. The connector tries 17 first, then 18. |
| Auth Type                | No          | String  | SQL      | `SQL` or `Kerberos`.                                                                                             |
| Kerberos Mode            | No          | String  | password | `password` or `keytab`.                                                                                          |
| Kerberos Realm           | No          | String  | None     | AD realm in uppercase. Can be empty if the username is in `user@REALM` form.                                     |
| KDC IP                   | No          | String  | None     | Key distribution center host or IP.                                                                              |
| Kerberos SPN             | No          | String  | None     | SPN override, for when the SPN in AD differs from the computed one.                                              |
| Keytab                   | Conditional | File    | None     | Required for Kerberos mode `keytab`.                                                                             |
| Encrypt                  | No          | Boolean | true     | TLS between client and server. Applied only with Kerberos.                                                       |
| Trust Server Certificate | No          | Boolean | true     | Skip certificate chain validation. Applied only with Kerberos.                                                   |

Either View Name or Custom Query must be set. If both are empty, discovery fails with "It is mandatory to enter either custom query or view".

## Troubleshooting

| Error message                                                                                                             | Cause                                      | Fix                                               |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------------- |
| It is mandatory to enter either custom query or view                                                                      | Neither View Name nor Custom Query is set. | Set one of them.                                  |
| No ODBC Driver found. Install 'ODBC Driver 17' or 'ODBC Driver 18' for SQL Server.                                        | PyODBC is on and no driver is installed.   | Install the driver or turn off Use PyODBC Driver. |
| Kerberos config failed: SQL Server reports auth\_scheme='{scheme}'. Check SPN registration in AD and the Encrypt setting. | Kerberos fell back to another scheme.      | Check the SPN in AD and the Encrypt setting.      |
| Keytab is required when kerberos\_mode is 'keytab'.                                                                       | Keytab mode without a keytab file.         | Upload the keytab.                                |
| Password is required when kerberos\_mode is 'password'. / Password is required for SQL Server Authentication.             | Password missing.                          | Enter the password.                               |

## Change history

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