Compare commits

...

3 Commits

View File

@ -2,6 +2,8 @@
Minimal Delegated License Service (DLS). Minimal Delegated License Service (DLS).
Compatibility tested with official DLS 2.0.1.
This service can be used without internet connection. This service can be used without internet connection.
Only the clients need a connection to this service on configured port. Only the clients need a connection to this service on configured port.
@ -13,27 +15,27 @@ Only the clients need a connection to this service on configured port.
## Endpoints ## Endpoints
### [`GET /`](/) ### `GET /`
Redirect to `/-/readme`. Redirect to `/-/readme`.
### [`GET /status`](/status) (deprecated: use `/-/health`) ### `GET /status` (deprecated: use `/-/health`)
Status endpoint, used for *healthcheck*. Shows also current version and commit hash. Status endpoint, used for *healthcheck*. Shows also current version and commit hash.
### [`GET /-/health`](/-/health) ### `GET /-/health`
Status endpoint, used for *healthcheck*. Shows also current version and commit hash. Status endpoint, used for *healthcheck*. Shows also current version and commit hash.
### [`GET /-/readme`](/-/readme) ### `GET /-/readme`
HTML rendered README.md. HTML rendered README.md.
### [`GET /-/docs`](/-/docs), [`GET /-/redoc`](/-/redoc) ### `GET /-/docs`, `GET /-/redoc`
OpenAPI specifications rendered from `GET /-/openapi.json`. OpenAPI specifications rendered from `GET /-/openapi.json`.
### [`GET /-/manage`](/-/manage) ### `GET /-/manage`
Shows a very basic UI to delete origins or leases. Shows a very basic UI to delete origins or leases.
@ -61,7 +63,7 @@ List current leases.
Deletes an lease. Deletes an lease.
### `GET /client-token` ### `GET /client-token` (deprecated: use `/-/client-token`)
Generate client token, (see [installation](#installation)). Generate client token, (see [installation](#installation)).
@ -308,7 +310,7 @@ Successfully tested with this package versions:
## Linux ## Linux
```shell ```shell
curl --insecure -X GET https://<dls-hostname-or-ip>/client-token -o /etc/nvidia/ClientConfigToken/client_configuration_token.tok curl --insecure -L -X GET https://<dls-hostname-or-ip>/client-token -o /etc/nvidia/ClientConfigToken/client_configuration_token.tok
service nvidia-gridd restart service nvidia-gridd restart
nvidia-smi -q | grep "License" nvidia-smi -q | grep "License"
``` ```
@ -321,7 +323,7 @@ Now restart `NvContainerLocalSystem` service.
**Power-Shell** **Power-Shell**
```Shell ```Shell
curl.exe --insecure -X GET https://<dls-hostname-or-ip>/client-token -o "C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken\client_configuration_token_$($(Get-Date).tostring('dd-MM-yy-hh-mm-ss')).tok" curl.exe --insecure -L -X GET https://<dls-hostname-or-ip>/client-token -o "C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken\client_configuration_token_$($(Get-Date).tostring('dd-MM-yy-hh-mm-ss')).tok"
Restart-Service NVDisplay.ContainerLocalSystem Restart-Service NVDisplay.ContainerLocalSystem
'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' -q | Select-String "License" 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' -q | Select-String "License"
``` ```