How can we discover the GPU(Graphics process unit) values for Linux server

K_Sai_K
Tera Contributor

How can we discover the GPU(Graphics process unit) values for Linux server. Need below values.

GPU Manufacturer
GPU Type
GPU Count
GPU Memory Size

2 REPLIES 2

Community Alums
Not applicable

Hi @K_Sai_K ,

 

Yes, we can discover the GPU value for linux server. Please follow below steps to get GPU Value. 

 

Step 1) Create Custom variables for these GPU fields as these are not supported by ootb. 

 

Step 2) Connect with your Linux team. To understand which commands to run from the pattern debugger to get these values. For Example, If you need to get  GPU Count, we can run  lspci | grep -i "vga\|3d\|display" | wc -l or  sudo lshw -C display | grep "product" | wc -l. Your linux team, will help you decide which commands to use to get these values as per your environment

 

Step 3) Create an pattern extension step on the Linux server pattern to get these values. Parse the values and populate on the custom variables. 

 

Regards, 

 

Srinija

 

 

 

Kieran Anson
Kilo Patron

Hi,

I believe it'll depend on the GPU manufacturer. If you look at the existing Linux Server pattern, you can see it uses cat /proc/cpuinfo to retrieve cpu data.

 

You could try cat /proc/bus/pci/devices and parse the output. lspci unix command might provide additional data to cat /proc*