# Managing a License

When you do not have a license, you can still run the Flopsar environment with some limitations, i.e. you can collect data only from a single agent. If you want to collect data from multiple agents, you will need a valid license. This license must be uploaded to the server. You can do this from the License page.

<figure><img src="/files/I598VZgCe5FLXjXcnm1u" alt=""><figcaption><p>License page</p></figcaption></figure>

You need to press the <mark style="color:blue;">`Update`</mark> button and upload the license by pasting its contents to the <mark style="color:blue;">`License Content`</mark> field.

<figure><img src="/files/8s8oebusrL7irBPXyGcy" alt=""><figcaption><p>Registering a new license</p></figcaption></figure>

The maximal number of agents, you can collect data from, is determined by the license you have. The license has also an expire date, unless you have a permanent one. When the license expires, all the connected agents get their license revoked. Only a single agent is left with its license. This implies the agents stop collecting nearly all data.

## License Mapping

If you have less agents connected than your license allows, all of your agents will get the license granted and you do need to do anything with it. However, if this is not the case, only a part of your agents will get the license. Which agents get the license is done automatically by default. If you want to have a control over this process, you must then assign the license manually.&#x20;

{% hint style="warning" %}
You need to have <mark style="color:green;">Edit license mapping</mark> permission to be able to edit the license mapping.
{% endhint %}

You will need to create a mapping, which specifies how many agents from a selected application should get the license.&#x20;

{% hint style="info" %}
If you have more agents from the same application than the number you assigned for them in the mapping, only part of them will get the license. The agents, which get the license will be selected randomly.&#x20;
{% 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.flopsar.com/5.3/administrator-guide/managing-a-license.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.
