From 059a51fe74a8017389919f3ada3ddcbbaf74fe61 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 17 Jan 2023 17:25:48 +0100 Subject: [PATCH] refactored commands --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6028bfd..28a7bdc 100644 --- a/README.md +++ b/README.md @@ -270,28 +270,66 @@ Successfully tested with this package versions: ## Linux +Download *client-token* and place it into `/etc/nvidia/ClientConfigToken`: + ```shell curl --insecure -L -X GET https:///-/client-token -o /etc/nvidia/ClientConfigToken/client_configuration_token_$(date '+%d-%m-%Y-%H-%M-%S').tok # or wget --no-check-certificate -O /etc/nvidia/ClientConfigToken/client_configuration_token_$(date '+%d-%m-%Y-%H-%M-%S').tok https:///-/client-token +``` +Restart `nvidia-gridd` service: + +```shell service nvidia-gridd restart +``` + +Check licensing status: + +```shell nvidia-smi -q | grep "License" ``` -## Windows +Output should be something like: -Download *client-token* and place it into `C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken`. -Now restart `NvContainerLocalSystem` service. +```text +vGPU Software Licensed Product + License Status : Licensed (Expiry: YYYY-M-DD hh:mm:ss GMT) +``` + +Done. For more information check [troubleshoot section](#troubleshoot). + +## Windows **Power-Shell** (run as administrator!) -```Shell +Download *client-token* and place it into `C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken`: + +```shell curl.exe --insecure -L -X GET https:///-/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 -'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' -q | Select-String "License" ``` +Restart `NvContainerLocalSystem` service: + +```Shell +Restart-Service NVDisplay.ContainerLocalSystem +``` + +Check licensing status: + +```shell +& 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' -q | Select-String "License" +``` + +Output should be something like: + +```text +vGPU Software Licensed Product + License Status : Licensed (Expiry: YYYY-M-DD hh:mm:ss GMT) +``` + +Done. For more information check [troubleshoot section](#troubleshoot). + # Endpoints ### `GET /`