Last active
December 21, 2021 16:40
-
-
Save ozskywalker/164f42523786d6581c8d5b31b24759f4 to your computer and use it in GitHub Desktop.
Get NVIDIA GeForce GTX/RTX GPU Temp & Utilization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nvidia-smi --query-gpu=name,temperature.gpu,utilization.gpu,utilization.memory --format=csv,nounits | ConvertFrom-CSV | ForEach-Object -Process { [PSCustomObject]@{ name=$_.name; temperature_gpu=[int]$_."temperature.gpu"; utilization_gpu=[int]$_."utilization.gpu [%]"; utilization_memory=[int]$_."utilization.memory [%]" } } | ConvertTo-Json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment