Lshw: Mengecek Spesifikasi Mesin Server Ubuntu

Terkadang kita memerlukan informasi secara lengkap hardware yang terinstal di komputer server Ubuntu. Salah satu perintah yang dapat digunakan untuk keperluan ini adalah LSHW. Lshw (Hardware Lister) merupakan aplikasi kecil tapi powerful dalam mendiagnosa dan menampilkan informasi konfigurasi perangkat keras pada sebuah sistem/mesin. Aplikasi ini dapat berjalan di sistem linux dan apple. Pada sistem ubuntu server, output yang dihasikan berupa tampilan teks, tergantung variasi input perintah. Hal ini sangat berguna pada saat kita ingin mengganti atau meng-upgrade komponen tanpa harus membuka casing komputer.

Lshw bermanfaat untuk mendiagnosa dan menampilkan informasi hardware mesin
Berikut beberapa variasi perintah dari lshw:
  • Menampilkan seluruh informasi perangkat keras
    #lshw
    (output yang ditampilkan cukup panjang dan lengkap)
  • Menampilkan laporan informasi perangkat keras lebih ringkas
    #lshw -short
    H/W path        Device      Class       Description
    ===================================================
                                system      A780VM-M3 ()
    /0                          bus         A780VM-M3
    /0/0                        memory      64KiB BIOS
    /0/4                        processor   AMD Athlon(tm) Processor LE-1640
    /0/4/5                      memory      128KiB L1 cache
    /0/4/6                      memory      1MiB L2 cache
    /0/26                       memory      2GiB System Memory
    /0/26/0                     memory      2GiB DIMM DDR2 Synchronous 400 MHz (2.5 ns)
    /0/26/1                     memory      DIMM SDRAM [empty]
    /0/100                      bridge      RS780 Host Bridge
    /0/100/1                    bridge      RS780/RS880 PCI to PCI bridge (int gfx)
    /0/100/1/5                  display     RS780C [Radeon 3100]
    /0/100/4                    bridge      RS780/RS880 PCI to PCI bridge (PCIE port 0)
    /0/100/4/0      eth3        network     RTL8111/8168/8411 PCI Express Gigabit Ethernet Control
    /0/100/5                    bridge      RS780/RS880 PCI to PCI bridge (PCIE port 1)
    /0/100/5/0      eth0        network     AR8121/AR8113/AR8114 Gigabit or Fast Ethernet
    /0/100/11                   storage     SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
    /0/100/12                   bus         SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
    /0/100/12.1                 bus         SB7x0 USB OHCI1 Controller
    /0/100/12.2                 bus         SB7x0/SB8x0/SB9x0 USB EHCI Controller
    /0/100/13                   bus         SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
    /0/100/13.1                 bus         SB7x0 USB OHCI1 Controller
    /0/100/13.2                 bus         SB7x0/SB8x0/SB9x0 USB EHCI Controller
    /0/100/14                   bus         SBx00 SMBus Controller
    /0/100/14.1                 storage     SB7x0/SB8x0/SB9x0 IDE Controller
    /0/100/14.2                 multimedia  SBx00 Azalia (Intel HDA)
    /0/100/14.3                 bridge      SB7x0/SB8x0/SB9x0 LPC host controller
    /0/100/14.4                 bridge      SBx00 PCI to PCI Bridge
    /0/100/14.4/1   eth2        network     VT6105/VT6106S [Rhine-III]
    /0/100/14.5                 bus         SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
    /0/101                      bridge      K8 [Athlon64/Opteron] HyperTransport Technology Config
    /0/102                      bridge      K8 [Athlon64/Opteron] Address Map
    /0/103                      bridge      K8 [Athlon64/Opteron] DRAM Controller
    /0/104                      bridge      K8 [Athlon64/Opteron] Miscellaneous Control
    /0/1            scsi0       storage
    /0/1/0.0.0      /dev/sda    disk        80GB ST380211AS
    /0/1/0.0.0/1    /dev/sda1   volume      243MiB Linux filesystem partition
    /0/1/0.0.0/2    /dev/sda2   volume      74GiB Extended partition
    /0/1/0.0.0/2/5  /dev/sda5   volume      74GiB Linux LVM Physical Volume partition
    /0/2            scsi5       storage
    /0/2/0.0.0      /dev/cdrom  disk        DVD-RAM GH22NP20
    /0/3            scsi6       storage
    /0/3/0.0.0      /dev/sdb    disk        SCSI Disk
  • Menampilkan sebagian atau perangkat tertentu
    Untuk menampilkan perangkat tertentu ditambahkan opsi -class, ada beberapa class yang dapat digunakan yaitu:
    • system
    • bridge
    • memory
    • processor
    • address
    • storage
    • disk
    • tape
    • bus
    • network
    • display
    • input
    • printer
    • multimedia
    • communication
    • power
    • volume
    • generic
    Dengan contoh penggunaan sebagai berikut:
    #lshw -class display
      *-display
           description: VGA compatible controller
           product: RS780C [Radeon 3100]
           vendor: Advanced Micro Devices, Inc. [AMD/ATI]
           physical id: 5
           bus info: pci@0000:01:05.0
           version: 00
           width: 32 bits
           clock: 33MHz
           capabilities: pm msi vga_controller bus_master cap_list rom
           configuration: driver=radeon latency=0
           resources: irq:18 memory:f0000000-f7ffffff ioport:b000(size=256) memory:fe8f0000-fe8fffff memory:fe700000-fe7fffff

    # lshw -class network
      *-network
           description: Ethernet interface
           product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           vendor: Realtek Semiconductor Co., Ltd.
           physical id: 0
           bus info: pci@0000:02:00.0
           logical name: eth3
           version: 06
           serial: 64:66:b3:02:2f:89
           size: 100Mbit/s
           capacity: 1Gbit/s
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168e-2.fw ip=192.168.10.1 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
           resources: irq:42 ioport:c800(size=256) memory:fe9ff000-fe9fffff memory:fdffc000-fdffffff


    Opsi network sangat membantu apabila kita berencana menambah atau mengganti kartu jaringan. Dimana akan ditampilkan tidak hanya merek atau chipset jaringan yang dipakai juga menampilkan nama logic dari perangkat tersebut (tanda kuning) sehingga kita tidak perlu menebak kartu jaringan menggunakan nama logic eth berapa? :)
Masih banyak variasi perintah yang dapat dicoba untuk menampilkan detail informasi perangkat keras sesuai yang dibutuhkan untuk ditampilkan. Semoga bermanfaat.

Referensi:
http://www.ezix.org/project/wiki/HardwareLiSter

Komentar

Most Popular Posts