Skip to main content
การตรวจสอบ Hardware ที่ใช้งานอยู่แบบละเอียดด้วยคำสั่ง lshw

การตรวจสอบ Hardware ที่ใช้งานอยู่แบบละเอียดด้วยคำสั่ง lshw

ก่อนอื่นตรวจสอบว่าคำสั่ง lshw ถูหติดตั้งหรือยัง หากยังไม่ติดตั้งให้ติดตั้งด้วยคำสั่ง yum

[root@moodle ~]# yum install lshw -y

หลังจากติกตั้งเสร็จสามารถเรียกใช้งานคำสั่ง
[root@moodle ~]# lshw

moodle
description: Computer
product: VirtualBox
vendor: innotek GmbH
version: 1.2
serial: 0
width: 32 bits
capabilities: smbios-2.5 dmi-2.5
configuration: uuid=15025078-E652-43C8-A227-E010484D7887
*-core
description: Motherboard
product: VirtualBox
vendor: Oracle Corporation
physical id: 0
version: 1.2
serial: 0
*-firmware
description: BIOS
vendor: innotek GmbH
physical id: 0
version: VirtualBox (12/01/2006)
size: 128KiB
capabilities: isa pci cdboot bootselect int9keyboard int10video acpi
*-memory
description: System memory
physical id: 1
size: 1991MiB
*-cpu
product: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
vendor: Intel Corp.
physical id: 2
bus info: cpu@0
version: 6.5.1
serial: 0004-0651-0000-0000-0000-0000
size: 2250MHz
width: 32 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 nx rdtscp constant_tsc up pni monitor ssse3
*-pci
description: Host bridge
product: 440FX - 82441FX PMC [Natoma]
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 02
width: 32 bits
clock: 33MHz
*-isa
description: ISA bridge
product: 82371SB PIIX3 ISA [Natoma/Triton II]
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: isa bus_master
configuration: latency=0
*-ide
description: IDE interface
product: 82371AB/EB/MB PIIX4 IDE
vendor: Intel Corporation
physical id: 1.1
bus info: pci@0000:00:01.1
logical name: scsi1
version: 01
width: 32 bits
clock: 33MHz
capabilities: ide bus_master emulated
configuration: driver=ata_piix latency=64
resources: irq:0 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:d000(size=16)
*-cdrom
description: DVD reader
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/dvd
logical name: /dev/scd0
logical name: /dev/sr0
capabilities: audio dvd
configuration: status=nodisc
*-display UNCLAIMED
description: VGA compatible controller
product: VirtualBox Graphics Adapter
vendor: InnoTek Systemberatung GmbH
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master
configuration: latency=0
resources: memory:e0000000-e0ffffff(prefetchable)
*-network
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 3
bus info: pci@0000:00:03.0
logical name: eth0
version: 02
serial: 08:00:27:4e:2b:48
size: 1GB/s
capacity: 1GB/s
width: 32 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=192.168.1.2 latency=64 link=yes mingnt=255 multicast=yes port=twisted pair speed=1GB/s
resources: irq:10 memory:f0000000-f001ffff ioport:d010(size=8)
*-generic UNCLAIMED
description: System peripheral
product: VirtualBox Guest Service
vendor: InnoTek Systemberatung GmbH
physical id: 4
bus info: pci@0000:00:04.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: bus_master
configuration: latency=0
resources: ioport:d020(size=32) memory:f0400000-f07fffff memory:f0800000-f0803fff(prefetchable)
*-multimedia
description: Multimedia audio controller
product: 82801AA AC'97 Audio Controller
vendor: Intel Corporation
physical id: 5
bus info: pci@0000:00:05.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: bus_master
configuration: driver=Intel ICH latency=64
resources: irq:11 ioport:d100(size=256) ioport:d200(size=64)
*-usb
description: USB controller
product: KeyLargo/Intrepid USB
vendor: Apple Inc.
physical id: 6
bus info: pci@0000:00:06.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: ohci bus_master cap_list
configuration: driver=ohci_hcd latency=64
resources: irq:11 memory:f0804000-f0804fff
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.32-431.23.3.el6.i686 ohci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=8 speed=12.0MB/s
*-bridge UNCLAIMED
description: Bridge
product: 82371AB/EB/MB PIIX4 ACPI
vendor: Intel Corporation
physical id: 7
bus info: pci@0000:00:07.0
version: 08
width: 32 bits
clock: 33MHz
capabilities: bridge bus_master
configuration: latency=0
*-storage
description: SATA controller
product: 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode]
vendor: Intel Corporation
physical id: d
bus info: pci@0000:00:0d.0
logical name: scsi2
version: 02
width: 32 bits
clock: 33MHz
capabilities: storage pm ahci_1.0 bus_master cap_list emulated
configuration: driver=ahci latency=64
resources: irq:11 ioport:d240(size=8) ioport:d250(size=8) ioport:d260(size=16) memory:f0806000-f0807fff
*-disk
description: ATA Disk
product: VBOX HARDDISK
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sda
version: 1.0
serial: VB6b26dc22-735a9a10
size: 20GiB (21GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=0006182d
*-volume:0
description: EXT4 volume
vendor: Linux
physical id: 1
bus info: scsi@2:0.0.0,1
logical name: /dev/sda1
logical name: /boot
version: 1.0
serial: afec78ad-cb12-4725-9cb0-e391df06132b
size: 500MiB
capacity: 500MiB
capabilities: primary bootable journaled extended_attributes huge_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2014-08-20 05:24:56 filesystem=ext4 lastmountpoint=/bootV� v�y���51�@�\�l,1�ES�A��!T��51�l,1��y��A��G modified=2014-10-30 09:05:30 mount.fstype=ext4 mount.options=rw,relatime,barrier=1,data=ordered mounted=2014-10-30 09:05:30 state=mounted
*-volume:1
description: Linux LVM Physical Volume partition
physical id: 2
bus info: scsi@2:0.0.0,2
logical name: /dev/sda2
serial: 1RsgYl-wYdW-KLRo-9YnM-Xr3a-YQfu-jLUCiW
size: 19GiB
capacity: 19GiB
capabilities: primary multi lvm2
-------------------------------------

ส่งไฟล์ออกเป็น Txt
[root@moodle ~]# lshw > ServerHW.txt