> 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/i/ibm-power-hardware-management-console-hmc.md).

# IBM Power Hardware Management Console (HMC)

The IBM Power Hardware Management Console (HMC) manages Power servers. OctoXLabs reads the managed servers, their logical partitions (LPARs) and their Virtual I/O Servers as devices, with model, serial number, firmware, memory, operating system and IP addresses.

## Use cases

* List LPARs and Virtual I/O Servers read from HMC.

```
Adapters = ibm-hmc AND OS.Type = Linux
```

* Find Power partitions that are not covered by your EDR.

```
Adapters = ibm-hmc AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                   | Port                                                       | Protocol |
| ------------------- | ----------------------------- | ---------------------------------------------------------- | -------- |
| OctoXLabs connector | HMC (hardware or virtual HMC) | 443 (HMC V11R1 and later) or 12443 (HMC V10R3 and earlier) | HTTPS    |

### Required permissions

| Scope or role                                                                               | Permission             | Needed for |
| ------------------------------------------------------------------------------------------- | ---------------------- | ---------- |
| HMC user that can view managed systems and partitions (for example task role **hmcviewer**) | Read                   | Devices    |
| HMC user with **Allow remote access via the web** on                                        | Access to the REST API | Devices    |

## Create credentials in IBM Power Hardware Management Console (HMC)

{% stepper %}
{% step %}

### Create or choose an HMC user

Use an HMC user that can view the managed systems and their partitions, for example a user with the **hmcviewer** task role.
{% endstep %}

{% step %}

### Allow remote access

Turn on **Allow remote access via the web** for this user.
{% endstep %}

{% step %}

### Check the resource role

The user sees only the managed systems and partitions of its resource role. If fewer devices arrive than you see on the HMC, check the resource role.
{% endstep %}

{% step %}

### Enter the host only

Enter only the host in IP. Do not include `https://`, a port or a path.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                            |
| --------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------- |
| IP        | Yes      | Text    | None    | IP address or host name of the HMC.                                                    |
| Port      | No       | Integer | `443`   | HMC REST API port. Use 12443 for HMC V10R3 and earlier.                                |
| Is Secure | No       | Boolean | `true`  | Connect over HTTPS. The HMC REST API is served over HTTPS only.                        |
| Username  | Yes      | Text    | None    | HMC user.                                                                              |
| Password  | Yes      | Text    | None    | Password of the user.                                                                  |
| Timeout   | No       | Integer | `120`   | Seconds to wait for API responses. The HMC can answer slowly on large managed systems. |

## Troubleshooting

| Error message                                                              | Cause                                                                 | Fix                                  |
| -------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------ |
| `IBM HMC <type> list of managed system <name> could not be read: <reason>` | The partition list of one managed system failed. Logged as a warning. | Check the resource role of the user. |
| `IBM HMC logoff failed: <reason>`                                          | The log off call failed. Logged as a warning.                         | No action is usually needed.         |

## Change history

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