Linux donanım bilgisi görmek

Linux donanım bilgisi görmek

Linux sunucularda donanım bilgisini detaylı olarak görmek mümkün olmayabilir.

Basit birkaç komut ile linux sunucunuza ait donanım bilgisini görebilirsiniz;

Örnek1: dmesg

Burada eth yerine pci v.b. komutlar yazarak bilgi almak istediğiniz donanım detaylarını görebilirsiniz

dmesg | grep eth
eth0: RealTek RTL8139 at 0xa000, 00:e0:4c:30:d5:70, IRQ 209
eth0:  Identified 8139 chip type ‘RTL-8139C’
eth1: RTL8169sc/8110sc at 0xf8822000, 00:1a:4d:3e:99:48, IRQ 217
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
eth0: no IPv6 routers present

Örnek2: cat /proc/*

ls -lah /proc komutu ile sorgulayabileceğiniz donanım başlıklarını görebilirsiniz

cat /proc/cpuinfo
processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Genuine Intel(R) CPU            2160  @ 1.80GHz
stepping        : 2
cpu MHz         : 1808.810
cache size      : 1024 KB

Örnek3: lshs

lshw sunucu donanım bilgisini gösteren en iyi yazılımdır.

Kurulum aşamaları;

wget http://ezix.org/software/files/lshw-B.02.14.tar.gz
tar -zxvf lshw-B.02.14.tar.gz
cd lshw-B.02.14
make
make install

Kurulumu tamamladıktan sonra aşağıdaki komut ile detaylı donanım bilgisini görebiliriz.

İşlemci veriyolu hızından ram slot sayısına kadar tüm detayları görebilmeniz mümkün;

lshw | more

description: Desktop Computer
product: 945GZM-S2
vendor: Gigabyte Technology Co., Ltd.
width: 32 bits
capabilities: smbios-2.4 dmi-2.4 smp-1.4 smp
configuration: boot=normal chassis=desktop cpus=2 uuid=00000000-0000-0000-0000-001A4D3E9948
*-core
description: Motherboard
product: 945GZM-S2
vendor: Gigabyte Technology Co., Ltd.
physical id: 0
*-firmware
description: BIOS
vendor: Award Software International, Inc.
physical id: 0
version: F2 (05/25/2007)
size: 128KiB
capacity: 448KiB
capabilities: pci pnp apm upgrade shadowing cdboot bootselect edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880
int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification
*-cpu:0
description: CPU
product: Genuine Intel(R) CPU            2160  @ 1.80GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.15.2
serial: 0000-06F2-0000-0000-0000-0000
slot: Socket 775
size: 1800MHz
capacity: 4GHz
width: 64 bits
clock: 200MHz
capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mm
x fxsr sse sse2 ss ht tm pbe nx x86-64 constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm

About the Author