Obtaining Nvidia GPU S/N via linux cli
#4
I expanded darkseid4nk's script a bit to show some additional particulars for each board.

Code:
#!/bin/bash

nvarr=($(nvidia-smi -L | awk ' {gsub(/:/, ""); print $2}'))

for i in "${nvarr[@]}"; do
    echo " $i: -----------------------------------------------"
    nvidia-smi -i $i -q | grep -E 'Product Name|Serial|Bus Id|UUID|  Power Limit|Default Power Limit|GPU Part|Image Version|Link Width|(Max|Current).*:.*[0-9]x$|PCIe Generation|  (Max|Current)  .*: [0-9]$'
done
echo "-----------------------------------------------"
~
Reply


Messages In This Thread
RE: Obtaining Nvidia GPU S/N via linux cli - by royce - 10-19-2020, 02:43 AM