# License

{% hint style="info" %}
A license key is required to use Datasentinel.
{% endhint %}

If you do not have one, you have the option to request a [Free 30-Day Trial](https://docs.datasentinel.io/manual/free-trial)

## Platform update

The update is done in the User Interface or by a script present in the platform. Refer to [Tooling section](https://docs.datasentinel.io/manual/implementation/tooling#token-update).&#x20;

* Open tools menu

  > <img src="https://1072624949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlcWi6G1jtNuyGT9C0pkc%2Fuploads%2FzWTph4wfhIrk7UQIVbl6%2Ftools_icon1.png?alt=media&#x26;token=ac39e6ab-8765-4938-8458-60065f675c19" alt="" data-size="original">
* Click on **Global settings**

  > <img src="https://1072624949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlcWi6G1jtNuyGT9C0pkc%2Fuploads%2FzePbi66m7shUU5qZwY2x%2Ftools_menu1.png?alt=media&#x26;token=5b8c7ea7-beb2-4e3b-9339-299c83810fdf" alt="" data-size="original">
* Then copy/paste the new valid token

  <figure><img src="https://1072624949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlcWi6G1jtNuyGT9C0pkc%2Fuploads%2FKQhxiUBJbqEbE5W1LYEX%2Fchange_token.gif?alt=media&#x26;token=1a02ec7c-234f-41f0-921c-efb5599f1f27" alt=""><figcaption><p>Updating the token</p></figcaption></figure>

## Agent update

Agents require a valid token for authentication and communication with the platform.

{% hint style="info" %}
The token needs to be configured at the agent level during initial installation. Subsequently, agents will autonomously download and update their token from the platform as needed.
{% endhint %}

Manual update can also be performed using the CLI

<pre class="language-bash"><code class="lang-bash"><strong>datasentinel set token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODM2OTUyNzcsImlhdCI6MTU3NjM1MTI3MiwiZGF0Y
</strong></code></pre>

* Output

```
Copyright 2023 (c) datasentinel- All rights reserved        www.datasentinel.io
================================================================================

Token successfully set!


        Server
                host : 51.158.120.108
                port : 443
```

```bash
// Check token validity
datasentinel show token

Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODM2OTUyNzcsImlhdCI6MTU3NjM1MTI3MiwiZGF0YWJhc2UiOiJkcy1kYXRhIn0.UQRxutKrJv7WVAaHCN3Fh_wnXJLst54s93lADIP_n-Y

   Organization : ds-data
Expiration Date : 2023-03-08 19:21:17
```
