First, introduce a web-circulated Yahoo company once used to collect hardware information script, you can view and download hwconfig here. Download Address: Https://github.com/smilejay/shell/blob/master/sh2012/hwconfig. It executes on one of my systems as follows:
The code is as follows |
Copy Code |
[Root@jay-linux test-programs]#./hwconfig Summary:qci qssc-s4r, 1 x 2.27GHz, 47.1GB/48GB 1067MHz DDR3 System:qci qssc-s4r Processors:1 (of 4) x 2.27GHz 133MHz FSB (HT enabled, cores, threads) MEMORY:47.1GB/48GB 1067MHz DDR3 = x 4GB, x empty DISK:SDA (HOST4): 1.0TB (44%) JBOD = = 1 x wdc-wd1002faex-00z3a0 DISK-CONTROL:HOST0: Disk-control:host1: Disk-control:host2: DISK-CONTROL:HOST3: DISK-CONTROL:HOST4: DISK-CONTROL:HOST5: Network:eth7 (IGB): 60:eb:69:21:29:b7, 1000mb/s <full-duplex> Network:eth8 (IGB): 60:EB:69:21:29:B4, no carrier Network:eth9 (IGB): 60:eb:69:21:29:b6, no carrier Network:eth10 (IGB): 60:EB:69:21:29:B5, no carrier Os:rhel Server 6.3 (Santiago), Linux 3.5.0-rc6+ x86_64, 64-bit Bios:intel qssc-s4r. qci.01.00.w008.111120102041 11/11/2010 Hostname:jay-linux |
This script is very good, highly recommended everyone to use! The only downside is that the hardware is changing, and this script is not currently finding the latest updates, and perhaps some of the most recent hardware may not be mentioned in the script.
Because it is often at the bottom of the Linux system and sometimes closely related to hardware, the following Linux commands are collected to view the hardware information for the system. These commands have been tested and used on my RHEL6.3 system.
View CPU information: Cat/proc/cpuinfo
View memory information: Cat/proc/meminfo
View Board information: CAT/PROC/PCI
View PCI information: LSPCI (compared to CAT/ PROC/PCI more intuitive)
View USB devices: Lsusb
View keyboard and mouse: Cat/proc/bus/input/devices
View system hard drive information and usage: fdisk-l and df-h
br> View Interrupt requests (IRQ) for each device: cat/proc/interrupts
View system architecture and kernel version: Uname-a
To view hardware information, including BIOS, CPU, Memory information: Dmidecode
To view hardware information/kernel printing information: dmesg | Less
for proc file system (/proc/), there are a number of specific information that is logged on the system:
Cpuinfo Host CPU Information
DMA host DMA Channel information
filesystems file system Information
Interrupts host interrupt information
Ioprots host I/O port number information
Meminfo host memory information
vers Ion Linux memory version information