Posts: 87
Threads: 4
Joined: Dec 2015
09-30-2016, 12:10 PM
(This post was last modified: 09-30-2016, 12:11 PM by jodler303.)
is there a way to obtain the serial numbers for gtx 1080, titan x, 980, etc... via linux command line ?
Posts: 22
Threads: 0
Joined: Mar 2016
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
Posts: 87
Threads: 4
Joined: Dec 2015
10-01-2016, 06:34 PM
(This post was last modified: 10-01-2016, 06:45 PM by jodler303.)
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 !!!
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
Posts: 930
Threads: 4
Joined: Jan 2015
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 "-----------------------------------------------"
~