> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/10.2-install/pentaho-installation-overview-cp/acquire-and-install-enterprise-licenses/install-and-manage-a-local-license-server/administrative-commands-for-local-license-server.md). Agents can also search and read this documentation through its [MCP server](https://docs.pentaho.com/~gitbook/mcp).

# Administrative commands for local license server

You can use various CLI commands to perform basic license management operations.

## Logs

| File                 | Location                                   | Description                  |
| -------------------- | ------------------------------------------ | ---------------------------- |
| `access_request.log` | `/var/opt/flexnetls/<*identityName*>/logs` | Server endpoint request logs |
| `flexnetls.log`      | `/var/opt/flexnetls/<*identityName*>/logs` | Various server logs          |

## Installation setup commands

**Note:** If security is enabled, which it is by default, you must provide user credentials for each of these commands. For example:

```
-authorize admin <password>
```

* Default username: `admin`
* Default password: `Password\!01`

| File/command                                                                                                                                   | Location                                                         | Description                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| `./flexnetlsadmin.sh -authorize admin <*password*> -server <http://<*server\_ip\_address*>:7070/api/1.0/instances/~> -status`                  | `/home/<user>/revenera/flexnetls-x64_linux-2023.05.0/enterprise` | Checks the status of the Flex Net service.                                                |
| `./flexnetlsadmin -authorize admin <*password*> -server <http://<*server\_ip\_address*>:7070/api/1.0/instances/~> -config`                     | `/home/<user>/revenera/flexnetls-x64_linux-2023.05.0/enterprise` | Checks the configuration of the license server.                                           |
| `./flexnetlsadmin.sh -authorize admin <*password*> -server <http://<*server\_ip\_address*>:7070/api/1.0/instances/~> -licenses -verbose`       | `/home/<user>/revenera/flexnetls-x64_linux-2023.05.0/enterprise` | Checks which entitlements have been activated.                                            |
| `./flexnetlsadmin.sh -authorize admin <*password*> -server <*licenseServer\_baseURL*> -activate -id <*activation\_id*> -count <*no\_of\_lic*>` | `/home/<user>/revenera/flexnetls-x64_linux-2023.05.0/enterprise` | Activates or populates the pool of licenses on the server after entitlements are created. |

## Other files and commands

| File/command                       | Location                 | Description                                                                                                                                      |
| ---------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `local-configuration.yaml`         | `/opt/flexnetls/pentaho` | Local license server configuration.                                                                                                              |
| `producer-settings.xml`            | `/opt/flexnetls/pentaho` | Server configuration that has been set up by Hitachi Vantara.                                                                                    |
| `sudo systemctl daemon-reload`     | Not applicable           | The `systemctl` commands must be executed when updating the server configuration, such as when performing updates to `local-configuration.yaml`. |
| `sudo systemctl stop flexnetls`    | Not applicable           | System-wide commands.                                                                                                                            |
| `sudo systemctl enable flexnetls`  |                          |                                                                                                                                                  |
| `sudo systemctl disable flexnetls` |                          |                                                                                                                                                  |
| sudo systemctl status flexnetls    |                          |                                                                                                                                                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/install/10.2-install/pentaho-installation-overview-cp/acquire-and-install-enterprise-licenses/install-and-manage-a-local-license-server/administrative-commands-for-local-license-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
