How to check Hardware Informaton in Linux h/w in linux

hrdedicated
Site Admin
Posts: 50
Joined: Thu May 30, 2013 10:28 pm

How to check Hardware Informaton in Linux h/w in linux

Postby hrdedicated » Sat Jun 01, 2013 11:53 am

Hardware Info:

Introduction: using following commands a linux user can check hardware information on the server. Login to as root and use following commands.

1. cat /proc/cpuinfo
List info about CPU.

2. cat /proc/meminfo
List all Mem info

3. lspci
list all PCI devices (result of probe) Also lspci -vvx and cat /proc/pci

4. cat /proc/interrupts
List IRQ's used by system and the device using the interrupt.

5. cat /proc/ioports
List I/O ports used by system.

6. cat /proc/dma
List DMA channels and device used by system

7. How know the hard drive speed

(This will check how fast the sites are resolving also)
Use /dev/hda or /dev/sda or what ever is the drive in the server:

#hdparm -tT /dev/sda

This command will show results like:
/dev/sda:
Timing cached reads: 3112 MB in 2.00 seconds = 1556.60 MB/sec
Timing buffered disk reads: 72 MB in 3.04 seconds = 60.66 MB/sec
If the second measurement is under 40MB/sec, the server is too slow and needs a hardware checkup


Few more commands:

1. cat /proc/cpuinfo
List info about CPU.

2. cat /proc/meminfo
List all Mem info

3. lspci:
list all PCI devices (result of probe) Also lspci -vvx and cat /proc/pci

4. cat /proc/interrupts
List IRQ's used by system and the device using the interrupt.

5. cat /proc/ioports
List I/O ports used by system.

6. cat /proc/dma
List DMA channels and device used by system

7. uname –r
Find running kernel version

8. gcc -v
gcc –version
What compiler version do I have installed

9. cat /proc/version
What is the running kernel and compiler installed

10. fdisk -l
How are the hard drives partitioned

11. df –h
How much free/used drive space

12. du | less
Show disk usage by current directory and all subdirectories

13. lsusb
List USB devices

Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 2 guests