# Classic license

A classic license is a text element you create in **get.weka.io** for your specific WEKA cluster and then apply the license text to your WEKA cluster.

## Obtain a classic license from get.weka.io

**Before you begin**

* To create a classic license in get.weka.io, you need a WEKA account. If you already have a WEKA account, skip this step. If not, see instructions in [Register to get.weka.io](https://docs.weka.io/4.1/install/bare-metal/obtaining-the-weka-install-file#register-to-get.weka.io).
* Obtain the cluster GUID and capacity from your system and keep it for later use.\
  Run the command `weka cluster license`.\
  The command provides an output of all the information required for creating your license.\
  \
  **Output example**

```
# weka cluster license 
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          : bbb6639d-3eaa-483b-b532-31a560d5859d
    Raw Drive Capacity    : 11399 GB
    Usable Capacity       : 0 GB
    Object-store Capacity : 0 GB

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

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

**Procedure**

1. Sign in to [get.weka.io](http://get.weka.io).
2. **Obtain an entitlement:** Once you have a WEKA account, the Customer Success Team applies an entitlement to the account. You can view the outstanding entitlements on the account dashboard.

![Outstanding Entitlements pane](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FZFNX7shkPZKJcAzKX9Ls%2Fgetwekaio_1_outstanding_entitlements.png?alt=media\&token=a0be8d93-8c47-48e1-b451-235c1c35f60d)

3\. In the Outstanding Entitlements pane, select **Create a license**.

4\. In the subsequent pane, select the line containing the entitlement for which a license is created\
&#x20;   and then select **Create a license.**

![Create a license](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FzOPJiBVXG6FCwwtzTuqU%2Fgetwekaio_2_create_classic_license.png?alt=media\&token=140fada1-10ce-4e68-bc6c-8e61d441d0c8)

4\. In the Create License dialog, fill in the cluster GUID and capacities that you have obtained \
&#x20;   (as part of the Before you begin section above) and select **Create License**.

{% hint style="info" %}
**Note:** If you plan a cluster expansion for the future, you can fill in capacities larger than those appearing in the Weka cluster license.

The capacities in the license represent the limits to which it is possible to expand the cluster and do not have to match the actual usage.
{% endhint %}

![Create license dialog](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2Ff0SjmkFqtZtO5L7ZwjLt%2Fgetwekaio_3_create_license_dialog.png?alt=media\&token=8aa299cf-e26b-47dc-b4cd-0fff25b38c83)

## Apply the license to the cluster

After creating the license, apply the license to the cluster.

**Procedure**

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

![Show license text](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FN9mAXuROz6KCdqE1h1NC%2Fgetwekaio_4_show_classic_license_text.png?alt=media\&token=3bbd1530-f969-4f6f-bc9c-9cba061acbe6)

2\. In the License Text dialog that opens, select **copy to clipboard**.

![License text dialog](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FZl7Mh4oVZ3TGUsj2LWYW%2Fgetwekaio_5_classic_license_text.png?alt=media\&token=fa2756e2-8e42-4620-a350-0c76b8c88671)

3\. On the Weka cluster, run the following command:

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

Instead of the \<license-key> in the command line, paste the license copied to the clipboard.

The license is assigned to the cluster.

## Reuse an existing license on a new cluster

When installing a new cluster, it is assigned with a new GUID. You can reuse an existing license for the newly-installed cluster.

**Procedure**

1. In the Licenses tab in get.weka.io, select the three dots to the right of the license details and then select **Change Cluster GUID**.

![Show license text](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FN9mAXuROz6KCdqE1h1NC%2Fgetwekaio_4_show_classic_license_text.png?alt=media\&token=3bbd1530-f969-4f6f-bc9c-9cba061acbe6)

2\. Set the new cluster GUID and select **Save Changes**.

![Change cluster GUID](https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FEnYVt6Eq1dXvjX2fr9VB%2Fgetwekaio_change_cluster_guid.png?alt=media\&token=8e26b9dc-7f9b-4221-9dab-40127e2e71ee)

3\. Apply the license with the updated GUID. See [Apply the license to the cluster](#apply-the-license-to-the-cluster).
