Monthly Archives: February 2016

Find GPU or Graphical processing Unit in Linux

While working on one of the issue we need to check if GPU is installed

We got it using below command which shows type of CPU installed in cli mode

[root@localhost ~]# lspci -vnn | grep VGA -A 12
07:0b.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 10) (prog-if 00 [VGA controller])
Subsystem: QUANTA Computer Inc Device [152d:897a]
Flags: medium devsel, IRQ 10
Memory at df800000 (32-bit, non-prefetchable) [size=8M]
Memory at df7e0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at ec00 [size=128]
Expansion ROM at <unassigned> [disabled]
Capabilities: [40] Power Management version 3

We could see our server had  ASPEED Technology, Inc. ASPEED Graphics card installed

 

Find the Model Number of Network Card in Linux

To find the model number of Network Interface Card installed in your Machine, you can use the lspci command. lspci command will list all detected PCI or PCIe hardware devices installed on your machine. So in order to find only network cards, you can run following command:

We got it using below command on our linux server

[root@localhost ~]# lspci | grep -i “Ethernet”
06:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
06:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

We see the ethernet card installed is  Intel Corporation 82576 Gigabit Network

Installing lspci on CentOS

lspci module is not installed on linux os by default

you need to use below steps to install it

[root@localhost ~]# yum install pciutils
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: yum.tamu.edu
* extras: mirrors.cmich.edu
* openvz-kernel-rhel6: openvz.jetfire.io
* openvz-utils: openvz.jetfire.io
* updates: centos.mia.host-engine.com
Resolving Dependencies
–> Running transaction check
—> Package pciutils.x86_64 0:3.1.10-4.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
pciutils x86_64 3.1.10-4.el6 base 85 k

Transaction Summary
========================================================================================================================================================================
Install 1 Package(s)

Total download size: 85 k
Installed size: 180 k
Is this ok [y/N]: y
Downloading Packages:
pciutils-3.1.10-4.el6.x86_64.rpm | 85 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pciutils-3.1.10-4.el6.x86_64 1/1
Verifying : pciutils-3.1.10-4.el6.x86_64 1/1

Installed:
pciutils.x86_64 0:3.1.10-4.el6

Complete!

The module is necessary to check of ethernet or graphics card installed in cli mode