# Apply a classic license

Obtain and apply a classic license from [get.weka.io](https://get.weka.io) to activate a WEKA cluster. You can also reuse the license on a new cluster or resize it when capacity changes.

{% hint style="info" %}
Only users with the Account Owner role can manage licenses.
{% endhint %}

## Before you begin

Before you start, confirm the following prerequisites:

1. You have a WEKA account. If not, follow the instructions in [Obtain the installation packages](/planning-and-installation/bare-metal/obtaining-the-weka-install-file.md).
2. You have access to the target cluster.
3. You can retrieve the cluster GUID and capacity values by running the following command:

```bash
weka cluster license
```

Example output:

{% code overflow="wrap" %}

```bash
Licensing status: Unlicensed

Your cluster is currently unlicensed. Please go to https://get.weka.io/ to get a license
or enroll in a subscription.

When asked, you'll need the following details to create your license:

    Cluster GUID          : 3457a5f2-c837-4bd6-8b1e-b348756408df
    Raw Drive Capacity    : 1610 GB
    Usable Capacity       : 694 GB
    Object-store Capacity : 0 GB

If you already have a license, please enter it by running

    weka cluster license set <license-key>
```

{% endcode %}

## Obtain a classic license

**Procedure**

1. Sign in to [get.weka.io](https://get.weka.io) using your WEKA account credentials.
2. Confirm that Sales Operations assigned an entitlement to your account. View available entitlements on the **Account Dashboard**.

<div data-with-frame="true"><img src="/files/LlWGpFcYaRkgoSP6dxaO" alt="Outstanding Entitlements pane"></div>

3. Create the license:
   * In **Outstanding Entitlements**, select **Create a license**.
   * Select the entitlement line item for the license.
   * Select **Create a license** again.

<div data-with-frame="true"><img src="/files/pjUpBiIXbIrjdkUMxnWN" alt="Create a license"></div>

4. Enter the cluster information in the **Create License** dialog:
   * Enter the **Cluster GUID** and capacity values from `weka cluster license`.
   * Optionally, enter higher capacity values if you plan to expand the cluster later.
   * The license defines the cluster capacity limit. It does not need to match current usage exactly.
5. Select **Create License**.

<div data-with-frame="true"><img src="/files/tlC2oFtdJMqR56SRYxyW" alt="Create license dialog" width="447"></div>

## Apply a classic license

After you create the license, apply it to the cluster. Only one license can be active at a time. Applying a new license replaces the existing one.

**Procedure**

1. In the **Licenses** tab in get.weka.io, select the three dots next to the license and then select **Show License Text**.

<div data-with-frame="true"><img src="/files/KKQSgafQyrzigHHEgN8K" alt="Show license text"></div>

2. In the **License Text** dialog, copy the full license text to the clipboard.

<div data-with-frame="true"><img src="/files/GC6upCGZIRbB77aoGSQ9" alt="License text dialog" width="448"></div>

3. Apply the license.

{% tabs %}
{% tab title="Using the GUI" %}

1. From the menu, select **Configure > Cluster Settings**.
2. In the **Cluster Settings** pane, select **License**.
3. Paste the license text and select **Save**.
   {% endtab %}

{% tab title="Using the CLI" %}
Run the following command:

```bash
weka cluster license set <license-key>
```

Replace `<license-key>` with the license text you copied.
{% endtab %}
{% endtabs %}

4. Verify that the cluster shows the expected license details.

{% tabs %}
{% tab title="Using the GUI" %}

1. Open **Configure > Cluster Settings > License**.
2. Confirm the displayed license details.
   {% endtab %}

{% tab title="Using the CLI" %}

1. Run the following command:

```bash
weka cluster license
```

2. Confirm the displayed license details.
   {% endtab %}
   {% endtabs %}

## Reuse a license on a new cluster

Reuse an existing classic license when you install a new cluster. A new cluster receives a new GUID. Changing the cluster GUID repurposes the license for the new cluster.

**Procedure**

1. In the **Licenses** tab in get.weka.io, select the three dots next to the license and then select **Change Cluster GUID**.
2. Enter the new cluster GUID and select **Save Changes**.
3. Apply the updated license. For the procedure, see [Apply a classic license](#apply-a-classic-license).

{% hint style="info" %}
After you change the cluster GUID, the license no longer matches the previous cluster.
{% endhint %}

## Resize a classic license

Resize a classic license when you purchase additional entitlement or need to correct the licensed capacity for a cluster.

Deactivating a license in [get.weka.io](https://get.weka.io) returns the capacity to the linked entitlement. Deactivation does not interrupt cluster operations.

License deactivation reclaims capacity back to your linked entitlement, enabling you to:

* Expand existing clusters
* Rebuild clusters
* Correct licenses issued with incorrect capacity

**Procedure**

1. Sign in to [get.weka.io](https://get.weka.io) and open the **Licenses** page.
2. Locate the license for the cluster you want to resize.
3. Select the **More options** menu and then select **Deactivate License**.
4. In the **Deactivate License** dialog, verify the license details and select **Deactivate License**.
5. Create a new license with the updated capacity values. For the procedure, see [Obtain a classic license](#obtain-a-classic-license).
6. Apply the new license to the cluster. For the procedure, see [Apply a classic license](#apply-a-classic-license).

{% hint style="info" %}
For details about license capacity rules, see [Licensing overview](/licensing/overview.md).
{% 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.weka.io/licensing/classic-licensing.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.
