# License overview

A license is a legal instrument governing the usage terms of the Weka cluster.

The license terms include the following properties:

* Cluster GUID that is created during the installation
* Expiry date (usage period)
* Raw or usable hot-tier (SSD) capacity
* Object store capacity

When a license is applied to a Weka cluster, the cluster verifies the license validity by comparing the license properties and the actual cluster usage.&#x20;

To start in a newly configured cluster, you must set a valid license. Weka supports two license types:

* **Classic license:** With this license type, the cost consists of a predetermined period (For example, one year) and the cluster capacity.
* **Pay-As-You-Go (PAYG) license:** With this license type, the cost consists of the hourly usage and the cluster capacity.

**Related topics**

[Classic license](/4.0/licensing/classic-licensing.md)

[Pay-As-You-Go license](/4.0/licensing/pay-as-you-go.md)

## Display the license status using the GUI

The Weka cluster license page displays the license properties: license mode, expiry date, raw or usable drives capacity, and object store capacity.

**Procedure**

1. From the menu, select **Configure > Cluster Settings**.
2. From the Cluster Settings pane, select **License**.

![Weka cluster license status](/files/jPJSjEtZ7Z34xeHwbgUq)

## Display the license status using the CLI

You can display the license status using one of the following commands:

* `weka cluster license`: Displays the license properties.
* `weka status`: Displays the weka status including the license status and expiry date.
* `weka alerts`: If no license is assigned to the cluster, the command displays a relevant alert.&#x20;

**Example: License status using the `weka cluster license` command**

```
# weka cluster license
Licensing status: Classic
Current usage:
    2374 GB raw drive capacity
    1024 GB usable capacity
    0 GB object-store capacity
Installed license:
    Valid from 2022-06-21T09:22:34Z
    Expires at 2022-07-21T09:22:34Z
    2374 GB raw drive capacity
    0 GB usable capacity
    1000000000000000 GB object-store capacity
```

**Example: Display the license status using the `weka status` command**

```
WekaIO v4.0.1 (CLI build 4.0.1)

...
       license: OK, valid thru 2023-07-19T09:22:34Z
...
```

**Example: License status when the cluster does not have a valid license**

```
# weka status
Weka v4.0.0.1 (CLI build 4.0.1)
...
       license: Unlicensed
...
```

**Example: License status using the `weka alerts` command for a cluster without an assigned license**

```
# weka alerts
...
No License Assigned
This cluster does not have a license assigned, please go to https://get.weka.io to obtain your license
```


---

# 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/4.0/licensing/overview.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.
