# OCS Inventory DB Adapter

## Connection Requirements

{% stepper %}
{% step %}

### IP

OCS Inventory DB located machines IP Address.
{% endstep %}

{% step %}

### Port

Port number (optional, default: 3306).
{% endstep %}

{% step %}

### Domain

Domain FQDN.
{% endstep %}

{% step %}

### Database

Base database.
{% endstep %}

{% step %}

### Username

Value provided username in MySQL server.

To create a User:

* Open MySQL Server Management Studio.
* Go to Management > Users and Privileges. Select the user you want to grant permissions
* Click Schema Privileges.
* Click Add Entry, select the database and click OK
* Check SELECT, under the Object Rights and click Apply and confirm.
* Login to the database with this user once to avoid an error.

> 🔵 **"Select"**\
> The user must have privilege.
> {% endstep %}

{% step %}

### Password

The Password of the provided username.
{% endstep %}

{% step %}

### View Name

The view name of OCS Inventory DB. (required).
{% endstep %}

{% step %}

### Custom Query

The custom query field for OCS Inventory DB. (optional).
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
⚠️ **Attention**\
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/adapters/adapters/ocs-inventory-db-adapter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
