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