Go to documentation repository
Page History
| Section | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Installation
| Note | ||
|---|---|---|
| ||
|
Для установки приватного Сервера лицензирования на ОС Linux необходимо:
| |
|
To install the private License server in Linux OS, do the following:
- Contact AxxonSoft technical support to get the required license-server.deb package.
- Copy the received license-server.deb package to the Downloads folder.
Install the private License server
- Создать запрос на активацию (см. Создание запроса на активацию).
Обратиться в компанию ITV и получить от менеджера необходимый пакет license-server.deb и пакет ключей keyfile.zip для приватного Сервера лицензирования.
Пакет ключей keyfile.zip содержит:- Сертификат: ngp.licserver.crt
- Приватный ключ: ngp.licserver.key
- Ключ Сервера: server.license.key
- Ключ Клиента: license.key
Далее необходимо скопировать полученный от менеджера ITV пакет license-server.deb в папку Downloads.
Установить приватный Сервер лицензирования:
Code Block language bash sudo dpkg -i license-server.debУбедиться, что по пути /etc/AxxonSoft/LicenseServer/ в файле конфигурации license.conf существует переменная - Create an activation request. To do this, you must collect the computer's HIDs using the LS_tool utility byrunningitin the console as the root user:
Code Block language bash /opt/AxxonSoft/LicenseServer/LS_tool-static --collect-hwinfoNote title Attention! The key binds to the License server, not to Axxon One. When you use the Guardant key, make sure that the USB key is connected to the server where you install the License server.
Make sure that there is a LEASE_ACCOUNTER_TLS_AUTH_ENABLED=true
. Если переменная отсутствует, необходимо выполнить командуvariable at the /etc/AxxonSoft/LicenseServer/ path in the license.conf configuration file. If the variable is missing, run the following command:
Code Block language bash sudo nano /etc/AxxonSoft/LicenseServer/license.confРаспаковать полученный от менеджера компании ITV архив keyfile.zip в папку keyfile- Send a file with collected HIDs of the computer to the AxxonSoft manager and request the keyfile.zip package for the private License server that contains:
Certificate: ngp.licserver.crt.
- Private key: ngp.licserver.key.
Server key: server.license.key.
Client key: license.key.
Unzip the keyfile.zip archive received from an AxxonSoft manager into the keyfile folder:
Code Block language bash sudo mkdir keyfile & unzip keyfile.zip -d keyfileПерейти в папку keyfileGo to the keyfile folder:
Code Block language bash cd ./keyfile/Добавить в директорию /etc/AxxonSoft/LicenseServer/ сертификат Add the ngp.licserver.crt
и приватный ключ certificate and the ngp.licserver.key private key to the /etc/AxxonSoft/LicenseServer/ directory:
Code Block language bash sudo cp ngp.licserver.crt ngp.licserver.key /etc/AxxonSoft/LicenseServer/Перейти в папку LicenseServerRestart the License server:
Code Block language bash sudo systemctl restart licenseПерейти по пути /etcAdd the server.license.key to the /var/AxxonSoft/LicenseServer/
и добавить в эту директорию ключ Сервера server.license.keykeys directory:
Code Block language bash sudo cp server.license.key /etcvar/AxxonSoft/LicenseServer/
Перезапустить Сервер лицензированияkeysВ результате по пути Restart the License server:
Code Block language bash sudo systemctl restart licenseAs a result, two files are located at the /var/AxxonSoft/LicenseServer/keys
будут расположены два файла: ключ Сервера path: server.license.key
и ключ с именем в виде ID-системы.and a key named as the system ID.
Удалить Серверный ключ Delete the
server.license.key
из директории from the /var/AxxonSoft/LicenseServer/keys directory:
Code Block language bash sudo rm /var/AxxonSoft/LicenseServer/keys/serv\ server.license.key
cd /etc/AxxonSoft/LicenseServer/Перезапустить Сервер лицензирования:
| language | bash |
|---|
| title | Примечание |
|---|
На всех Серверах ПК Интеллект X, находящихся в домене, с помощью утилиты активации активировать ключ Клиента license.key (см. Активация путем распространения лицензионного файла).
| Info | ||
|---|---|---|
| ||
В результате на всех Серверах ПК Интеллект X, находящихся в домене по пути /opt/AxxonSoft/RaFT/data/Nodes/default/Tickets/, будут расположены два файла: ключ Клиента license.key и сертификат ngp.ca. |
Установка приватного Сервера лицензирования на ОС Linux завершена.
Полезные команды
Installation of the private License server in Linux OS is complete. To access the License server web interface, do the following:
- Figure out the address of the License server using the command:
Code Block systemctl status license - Enter the obtained address into the browser's search bar.
As a result, the License server web interface opens (see Logging in to the License server web interface).
Useful commands
InstallУстановить:
| Code Block | ||
|---|---|---|
| ||
dpkg -i license-server.deb |
УдалитьDelete:
| Code Block | ||
|---|---|---|
| ||
dpkg -r license-server |
Перезапустить службуRestart the service:
| Code Block | ||
|---|---|---|
| ||
systemctl restart license |
Проверить статус службыCheck the status of the service:
| Code Block | ||
|---|---|---|
| ||
systemctl status license |
Посмотреть журнал службыView the service log:
| Code Block | ||
|---|---|---|
| ||
journalctl -u license.service -r |
Useful commands using Prometheus metrics
Check the status of the service:
| Code Block |
|---|
ngp_license_service_status |
Where the response is:
- 0—the service is working;
- greater than or equal to 1—there are problems in the service operation.
Check license expiration time:
| Code Block |
|---|
ngp_license_expire_time_utc |
The response contains the time in 64-bit Unix format. To convert the response to date and time format, you can use any available converter (for example, https://timeconverter.online/). For example, 1917820800 corresponds to October 10, 2030, in the value of the license key.
| Info | ||
|---|---|---|
| ||
Metrics are sent either every three minutes or when connection with the License server is lost. |