Unique hardware identifier

Is there a way to programatically get any unique hardware identifiers, like serial numbers, on the Drive platforms?

We are looking for a way to identify single instances to implement licensing.

Dear katwa,

You can get the HW info with those command.

cat /proc/device-tree/chosen/nvidia,sku
cat /proc/device-tree/chosen/nvidia,sku_version

On our Drive PX, this file is empty. So, no hardware info there.

ls -la /proc/device-tree/chosen           

total 0
drwxr-xr-x   3 root root   0 Dec  2 09:44 .
drwxr-xr-x 129 root root   0 Dec  2 09:44 ..
-r--r--r--   1 root root 574 Dec  2 09:44 bootargs
-r--r--r--   1 root root   4 Dec  2 09:44 linux,initrd-end
-r--r--r--   1 root root   4 Dec  2 09:44 linux,initrd-start
-r--r--r--   1 root root   7 Dec  2 09:44 name
-r--r--r--   1 root root   0 Dec  2 09:43 nvidia,t210-vcm31-sku
drwxr-xr-x   2 root root   0 Dec  2 09:44 reset

Any other suggestions?

Dear katwa,

Could you please let me know if you have DrivePX2 or DrivePX?

If you have DrivePX2, you can see below info.

nvidia@tegra-ubuntu:/proc/device-tree/chosen$ ll
total 0
drwxr-xr-x   4 root root   0 Nov 28 21:13 ./
drwxr-xr-x 189 root root   0 Jan  1  1970 ../
-r--r--r--   1 root root 335 Dec  4 10:47 bootargs
-r--r--r--   1 root root   8 Dec  4 10:47 linux,initrd-end
-r--r--r--   1 root root   8 Dec  4 10:47 linux,initrd-start
-r--r--r--   1 root root   7 Dec  4 10:47 name
-r--r--r--   1 root root  18 Dec  4 10:47 nvidia,ether-mac
-r--r--r--   1 root root  19 Dec  4 10:47 nvidia,prodinfo
-r--r--r--   1 root root   3 Dec  4 10:47 nvidia,prodver
-r--r--r--   1 root root  20 Dec  4 10:47 nvidia,serialnumber
-r--r--r--   1 root root  19 Dec  4 10:47 nvidia,sku
-r--r--r--   1 root root   3 Dec  4 10:47 nvidia,sku_version
-r--r--r--   1 root root   0 Nov 28 21:13 nvidia,tegra-hypervisor-mode
drwxr-xr-x   3 root root   0 Dec  4 10:47 plugin-manager/
-r--r--r--   1 root root  16 Dec  4 10:47 stdout-path
drwxr-xr-x   2 root root   0 Dec  4 10:47 update-info/
nvidia@tegra-ubuntu:/proc/device-tree/chosen$

This is my board info

nvidia@tegra-ubuntu:/proc/device-tree/chosen$ cat nvidia,sku
699-62379-0000-400
nvidia@tegra-ubuntu:/proc/device-tree/chosen$ cat nvidia,sku_version
00
nvidia@tegra-ubuntu:/proc/device-tree/chosen$ cat nvidia,serialnumber
0

If you have DrivePX, unfortunately DrivePX is an old model and no longer supported.

Yes, we have a Drive PX. Thus no such file.
Thanks for your help.