ผู้เขียน หัวข้อ: การดู Spec เครื่อง Server ด้วย lshw  (อ่าน 16432 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ Svl2Nuk3

  • Hero Member
  • *****
  • กระทู้: 793
  • Respect: 0
    • ดูรายละเอียด
การดู Spec เครื่อง Server ด้วย lshw
« เมื่อ: พฤษภาคม 02, 2011, 13:06:38 PM »
0
   ดูสเปคฮาร์ดแวร์ ที่ติดตั้งลีนุกซ์อย่างไร? เป็นคำถามที่โดนถามบ่อย ลีนุกซ์มีหลายคำสั่งที่ช่วยในการดูสเปคฮาร์ดแวร์ ที่โดดเด่นที่สุดก็น่าจะเป็น lshw ซึ่งได้ข้อมูลมาเพียบ

root@sothorn2:~# lshw -short
H/W path        Device      Class       Description
===================================================
                            system      System Product Name
/0                          bus         M2N-MX SE Plus
/0/0                        memory      64KiB BIOS
/0/3                        processor   AMD Athlon(tm) 64 X2 Dual Core Processor
/0/3/5                      memory      256KiB L1 cache
/0/3/6                      memory      1MiB L2 cache
/0/3/7                      memory      L3 cache
/0/2b                       memory      3GiB System Memory
/0/2b/0                     memory      2GiB DIMM Synchronous 800 MHz (1.2 ns)
/0/2b/1                     memory      1GiB DIMM Synchronous 800 MHz (1.2 ns)

  อย่างไรก็แล้วแต่การแสดงผลก็ยังเป็นแบบ Text ถ้าจะดูให้หนำใจแบบกราฟิกก็ต้อง lshw-gtk

บน Ubuntu ติดตั้งได้โดย apt-get install lshw-gtk
บน CentOS ติดตั้งโดย yum install lshw-gtk

http://opensource.cc.psu.ac.th/%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87_lshw_%E0%B8%9A%E0%B8%99_CentOS

http://linux.sothorn.org/content/%E0%B8%94%E0%B8%B9%E0%B8%AA%E0%B9%80%E0%B8%9B%E0%B8%84%E0%B8%AE%E0%B8%B2%E0%B8%A3%E0%B9%8C%E0%B8%94%E0%B9%81%E0%B8%A7%E0%B8%A3%E0%B9%8C%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%A5%E0%B8%B5%E0%B8%99%E0%B8%B8%E0%B8%81%E0%B8%8B%E0%B9%8C%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3
I'm nuke (นุ๊ก)
My Blog  : http://www.codenuke.net
อดีต นวก.คอมฯ รพช.พรหมพิราม => 1 พ.ค. 52 - 30 ก.ย. 54
ปัจจุบัน : Software Engineer บริษัทแห่งหนึ่ง

ออฟไลน์ ismailsa

  • Sr. Member
  • ****
  • กระทู้: 282
  • Respect: +4
    • ดูรายละเอียด
    • www.tydhospital.com
Re: การดู Spec เครื่อง Server ด้วย lshw
« ตอบกลับ #1 เมื่อ: พฤษภาคม 02, 2011, 13:49:14 PM »
0
 :) :) เจ๋งเลย  ;D ;D
นายอิสะมะแอ สะ นักวิชาการคอมพิวเตอร์
โรงพยาบาลทุ่งยางแดง จ.ปัตตานี
Server MASTER HP ML150G5  Intel Quadcore Xeonl  Ram 5G   HD 160 G SATA2  Centos 4.7serverCD-64 Bit   mysql  Percona ExtraDB 5.1.47-64 Bit hosxp  3.53.9.21
Replicate Server AMD X2 Duacore Ram 2 G
Datacenter Site www.tydhospital.org:9999
Website www.tydhospital.org
E-mail : air_comsci@hotmail.com
Tel : 089-8703569
รับผิดชอบ 1 รพ. 2 รพ.สต 2 สอ. 1 สสอ.

ออฟไลน์ Bangkaja Distric Health Center

  • Sr. Member
  • ****
  • กระทู้: 314
  • Respect: +1
    • ดูรายละเอียด
Re: การดู Spec เครื่อง Server ด้วย lshw
« ตอบกลับ #2 เมื่อ: มีนาคม 09, 2012, 21:55:44 PM »
0
    less /etc/sysconfig/hwconf : to get installed hardware information.
    less /proc/cpuinfo              : to get installed CPUs specification.
    less /var/log/dmesg or dmesg :to get the Linux boot up information.
    less /proc/interrupts            :to list the IRQ used by system devices.
    less /proc/ioports                :to list I/O ports used by system.
    less /proc/dma                    :to list DMA channels and device used by system.
    less /proc/version or uname -a or less /etc/redhat-release or lsb_release -a  :to show the Linux version.
    kudzu -p to show the probe information about hardware detected
    /usr/bin/lsdev to list devices and information on system hardware.
    /sbin/lspci to list detected PCI devices.
    /sbin/lsmod to list loadable modules.
    /sbin/lsraid to list raid device.
    /sbin/lsusb to list USB device.
    /sbin/usbmodules to list kernel driver modules available for USB devices.
จพ.สาธารณสุขชำนาญงาน
รพ.สต.บางกะจะ อ.เมือง จ.จันทบุรี