> 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/m/microfocus-server-automation.md).

# Microfocus Server Automation

Micro Focus Server Automation (formerly HPE Server Automation) keeps its inventory in an Oracle database. OctoXLabs reads that database to add servers, installed packages, patch compliance and DNS data to the device inventory.

## Use cases

* List the servers managed by Server Automation.

```
Adapters = microfocus-server-automation
```

* Find servers that Server Automation sees but that have no EDR agent.

```
Adapters = microfocus-server-automation AND NOT Groups = edr
```

## Before you begin

### Network

| Source              | Destination          | Port                          | Protocol         |
| ------------------- | -------------------- | ----------------------------- | ---------------- |
| OctoXLabs connector | Oracle database host | 1521 (or the configured port) | TCP (Oracle Net) |

### Required permissions

| Scope or role | Permission | Needed for                                                                                                                             |
| ------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| SELECT        | Read       | Schema that owns DEVICES (default `TRUTH`) and the tables SERVERS, INSTALLED\_UNITS, compliance and patch tables, device\_dns\_servers |

The frontend instructions only state SELECT on the necessary schemas and tables. The table list comes from the connector queries.

## Create credentials in Microfocus Server Automation

{% stepper %}
{% step %}

### Create a database user

Create a read-only Oracle user for OctoXLabs.
{% endstep %}

{% step %}

### Grant SELECT

Grant SELECT on the schema that owns the DEVICES table (default `TRUTH`) and on the related tables listed above.
{% endstep %}

{% step %}

### Note the connection details

Note the host, listener port and the SID or service name.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                             | Required | Type    | Default | Description                                                                                   |
| ------------------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------- |
| IP (`ip`)                             | Yes      | String  |         | IP address or hostname of the Oracle database host.                                           |
| Port (`port`)                         | No       | Integer | 1521    | Oracle listener port.                                                                         |
| SID or Service Name (`sid`)           | No       | String  | protect | Database SID, or the service name when Use Service Name is on.                                |
| Use Service Name (`use_service_name`) | No       | Boolean | False   | Treat the SID or Service Name value as an Oracle service name.                                |
| Username (`username`)                 | Yes      | String  |         | Database account.                                                                             |
| Password (`password`)                 | Yes      | String  |         | Password of the account.                                                                      |
| Custom Query (`custom_query`)         | No       | SQL     |         | Replaces the default device query. When empty, the DEVICES table joined with SERVERS is used. |
| Devices Schema (`devices_schema`)     | No       | String  | TRUTH   | Oracle schema that owns the DEVICES table. Leave blank to use bare table names.               |

## Troubleshooting

| Error message | Cause | Fix                                    |
| ------------- | ----- | -------------------------------------- |
| Not verified  |       | No adapter-specific error text in code |

## Change history

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