# License Overview

## License Metrics

A Weka system license measures usage at the cluster level and contains the following properties:

1. Cluster GUID (created at the time of installation)
2. Expiry date
3. Raw or usable hot-tier (SSD) capacity
4. Object store capacity

When applied, the cluster verifies that the license is valid by comparing these properties and actual cluster usage.

To be able to start-io in a newly configured cluster, a valid license must be set (either a classic or a PAYG license).

## Cluster Licensing Status

To view the cluster licensing status, run the `weka status` command:

```
# weka status
Weka v3.1.7.2 (CLI build 2.5.3)
...
       license: OK, valid thru 2018-07-31T07:14:05Z
...
```

In the example status above, it is possible to see that the cluster has a valid license which is due to expire on July 31st 2018. If the cluster does not have a valid license, the licensing status will appear as follows:

```
# weka status
Weka v3.1.7.2 (CLI build 2.5.3)
...
       license: Unlicensed
...
```

The system includes cluster alerts which also indicate if the cluster does not have an assigned license. Cluster alerts can be viewed by running the `weka alerts` command:

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

## Obtaining a License

There are two ways to obtain a license for your cluster:

1. **Classic Licensing:** In this method, payment is for a predetermined period of time, e.g., 1 year. See [Classic Licensing ](https://docs.weka.io/3.14/licensing/classic-licensing)for information more about this method.
2. **Pay-As-You-Go (PAYG) Licensing:** In this method, payment is according to hourly usage.  See [Pay As You Go](https://docs.weka.io/3.14/licensing/pay-as-you-go) for more information about this method.
