lost and found ( for me ? )

CentOS 5.6 : how to install lshw

lshw command provides you with detailed hardware information.

[ How to install lshw on CentOS 5.6 ]

There are RPMs below.

download an appropriate RPM and install it.
# rpm -ivh lshw-2.12.1-1.el5.rf.x86_64.rpm
警告: lshw-2.12.1-1.el5.rf.x86_64.rpm: ヘッダ V3 DSA signature: NOKEY, key ID 6b8d79e6
準備中...                ########################################### [100%]
  1:lshw                   ########################################### [100%]


If you are using Ubuntu , you can install lshw through apt-get.
# apt-get install lshw


[ How to use ]

dump an entire hardware info
# lshw


only network info
# lshw -class network

# lshw -class storage
# lshw -class memory
# lshw -class cpu
# lshw -short


My server has four NICs )and I want to check PCI slot #.

Seen from this output , I can figure out PCI slot # of eth2 is 0d
0d = bus , 00 = slot #  , .0 function
# lshw -class network
 *-network:0
      description: Ethernet interface
      product: 82571EB Gigabit Ethernet Controller
      vendor: Intel Corporation
      physical id: 0
      bus info: pci@0000:0d:00.0
      logical name: eth2
      version: 06
      serial: 00:26:55:e1:b5:1a
      size: 100MB/s
      capacity: 1GB/s
      width: 32 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.2.7-k2 duplex=full firmware=5.11-2 ip=192.168.10.12 latency=0 link=yes module=e1000e multicast=yes port=twisted pair speed=100MB/s
 *-network:1 DISABLED
      description: Ethernet interface
      product: 82571EB Gigabit Ethernet Controller
      vendor: Intel Corporation
      physical id: 0.1
      bus info: pci@0000:0d:00.1
      logical name: eth3
      version: 06
      serial: 00:26:55:e1:b5:1b
      capacity: 1GB/s
      width: 32 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.2.7-k2 firmware=5.11-2 latency=0 link=no module=e1000e multicast=yes port=twisted pair
 *-network:0
      description: Ethernet interface
      product: NetXtreme BCM5715 Gigabit Ethernet
      vendor: Broadcom Corporation
      physical id: 4
      bus info: pci@0000:03:04.0
      logical name: eth0
      version: a3
      serial: 68:b5:99:7c:94:90
      size: 100MB/s
      capacity: 1GB/s
      width: 64 bits
      clock: 66MHz
      capabilities: pcix pm vpd msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.108 duplex=full firmware=5715-v3.29, UMP 1.23 ip=172.30.68.72 latency=64 link=yes mingnt=64 module=tg3 multicast=yes port=twisted pair speed=100MB/s
 *-network:1 DISABLED
      description: Ethernet interface
      product: NetXtreme BCM5715 Gigabit Ethernet
      vendor: Broadcom Corporation
      physical id: 4.1
      bus info: pci@0000:03:04.1
      logical name: eth1
      version: a3
      serial: 68:b5:99:7c:94:91
      capacity: 1GB/s
      width: 64 bits
      clock: 66MHz
      capabilities: pcix pm vpd msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.108 duplex=half firmware=5715-v3.29 latency=64 link=no mingnt=64 module=tg3 multicast=yes port=twisted pair
 *-network
      description: Ethernet interface
      physical id: 1
      logical name: virbr0
      capabilities: ethernet physical
      configuration: broadcast=yes driver=bridge driverversion=2.2 firmware=N/A ip=192.168.122.1 link=yes multicast=yes


Here’s an output of lspic
# lspci -s 0d:00.0
0d:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)

2 comments:

  1. I want to install lshw on my CentOS, thanks already to guide how to install.

    ReplyDelete
  2. Thank you for your comment.
    I'm so happy to help you :)

    ReplyDelete

Note: Only a member of this blog may post a comment.