09-30-2016, 12:10 PM
09-30-2016, 07:32 PM
nvidia-smi should if it could get that information from the GPU. So I guess it is GPU dependent on whether or not the serial is stored on the card.
Code:
root@brutalis:~# nvarr=($(nvidia-smi -L | awk ' {gsub(/:/, ""); print $2}')); for i in "${nvarr[@]}"; do nvidia-smi -i $i -q | grep -E 'Minor Number|Product Name|Product Brand|Serial'; done
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 0
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 1
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 2
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 3
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 4
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 5
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 6
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 7
10-01-2016, 06:34 PM
Awesome! Did check the nvidia-* tools before but seems like i missed the S/N's.
Indeed doesn't show S/N for GTX980 but it's working for GTX1080's. Sold the titan x meanwhile, can't tell anymore.
Thank You !!!
Indeed doesn't show S/N for GTX980 but it's working for GTX1080's. Sold the titan x meanwhile, can't tell anymore.
Thank You !!!
Code:
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 0
Product Name : GeForce GTX 1080
Product Brand : GeForce
Serial Number : 0322xxxxxxxxx
Minor Number : 1
Product Name : GeForce GTX 980
Product Brand : GeForce
Serial Number : N/A
Minor Number : 2
Product Name : GeForce GTX 1080
Product Brand : GeForce
Serial Number : 0322xxxxxxxxx
Minor Number : 3
Product Name : GeForce GTX 1080
Product Brand : GeForce
Serial Number : 0322xxxxxxxxx
Minor Number : 4
10-19-2020, 02:43 AM
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 "-----------------------------------------------"