server icon indicating copy to clipboard operation
server copied to clipboard

detect and run /usr/sbin/update-pciids on first run of agent

Open roycewilliams opened this issue 4 years ago • 0 comments

If the local OS list of PCI IDs is older than GPUs present in the system, "bare"/generic PCI IDs are shown, which is detected and used by hashtopolis (at the point of creation of the agent):

NVIDIA Corporation Device 1e82 (rev a1)
NVIDIA Corporation Device 1e81 (rev a1)
NVIDIA Corporation Device 1e82 (rev a1)
NVIDIA Corporation Device 1e81 (rev a1)

After updating using /usr/sbin/update-pciids, the actual card type is known:

NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)

So it would be useful if, on first run of the agent, if /usr/sbin/update-pciids exists, to run it. This downloads the latest PCI IDs list and stores it locally.

roycewilliams avatar Jul 19 '20 14:07 roycewilliams