Check Linux Hardware Properties Detail on Linux Fedora 10 using lshw Command



Computer Configuration GNU Linux Fedora using Linux Command

 

   Step by step command example below show how to check Linux hardware properties detail on Linux fedora system using lshw command.  The example below use the lshw command without any option to display all hardware details and then the output from the lshw command is pipe to less command to display the output from lshw command on scrollable mode.  The example below execute and tested on Linux Fedora 10 server.  Please note that you may need to install lshw command tool in order to follow and get the output as show on this lshw command example.

 

Execute lshw command to check Linux hardware details:

Check Linux Hardware Properties Detail on Linux Fedora 10 using lshw Command

[root@fedora10 ~]# lshw |less

fedora10.jmti.gov.my

    description: Tower Computer

    product: ProLiant ML530 G2

    vendor: Compaq

    serial: H0YBCJQ411D

    width: 32 bits

    capabilities: smbios-2.3 dmi-2.3 smp-1.4 smp

    configuration: boot=normal chassis=tower cpus=2 uuid=48305942-4A51-3431-02020

  *-core

       description: Motherboard

       physical id: 0

     *-firmware

          description: BIOS

          vendor: Compaq

          physical id: 0

          version: P22 (05/29/2003)

          size: 64KiB

          capacity: 1984KiB

          capabilities: pci pnp upgrade shadowing escd cdboot bootselect int13floppy360 int13floppy1200 int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification

     *-cpu:0

          description: CPU

          product: Intel(R) Xeon(TM) CPU 2.40GHz

          vendor: Intel Corp.

          physical id: 406

          bus info: cpu@0

          version: 15.2.9

          slot: Proc 1

          size: 2400MHz

          capacity: 2800MHz

          width: 32 bits

          clock: 100MHz

          capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr

          configuration: id=6

        *-cache:0

             description: L1 cache

             physical id: 716

             slot: Processor 1 Internal L1 Cache

             size: 8KiB

             capacity: 32KiB

             capabilities: burst internal write-back

        *-cache:1

             description: L2 cache

             physical id: 726

             slot: Processor 1 Internal L2 Cache

             size: 512KiB

             capacity: 2MiB

             capabilities: burst internal write-back

        *-logicalcpu:0

             description: Logical CPU

             physical id: 6.1

             width: 32 bits

             capabilities: logical

        *-logicalcpu:1

             description: Logical CPU

             physical id: 6.2

             width: 32 bits

             capabilities: logical

     *-cpu:1

          description: CPU

          product: Intel(R) Xeon(TM) CPU 2.40GHz

          vendor: Intel Corp.

          physical id: 400

          bus info: cpu@1

          version: 15.2.9

          slot: Proc 2

          size: 2400MHz

          capacity: 2800MHz

          width: 32 bits

          clock: 100MHz

          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr

          configuration: id=6

        *-cache:0

             description: L1 cache

             physical id: 710

             slot: Processor 2 Internal L1 Cache

             size: 8KiB

             capacity: 32KiB

             capabilities: burst internal write-back

        *-cache:1

             description: L2 cache

             physical id: 720

             slot: Processor 2 Internal L2 Cache

             size: 512KiB

             capacity: 2MiB

             capabilities: burst internal write-back

        *-logicalcpu:0

             description: Logical CPU

             physical id: 6.1

             width: 32 bits

             capabilities: logical

        *-logicalcpu:1

             description: Logical CPU

             physical id: 6.2

             width: 32 bits

             capabilities: logical

     *-cache:0 DISABLED

          description: L3 cache

          physical id: 736

          slot: Processor 1 Internal L3 Cache

          capacity: 1MiB

          capabilities: burst internal write-back

     *-cache:1 DISABLED

          description: L3 cache

          physical id: 730

          slot: Processor 2 Internal L3 Cache

          capacity: 1MiB

          capabilities: burst internal write-back

     *-memory

          description: System Memory

          physical id: 1000

          slot: Proprietary add-on card

          size: 1GiB

        *-bank:0

             description: DIMM DDR Synchronous 200 MHz (5.0 ns)

             physical id: 0

             slot: DIMM 01

             size: 512MiB

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:1

             description: DIMM DDR Synchronous 200 MHz (5.0 ns)

             physical id: 1

             slot: DIMM 02

             size: 512MiB

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:2

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 2

             slot: DIMM 03

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:3

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 3

             slot: DIMM 04

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:4

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 4

             slot: DIMM 05

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:5

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 5

             slot: DIMM 06

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:6

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 6

             slot: DIMM 07

             width: 64 bits

             clock: 200MHz (5.0ns)

        *-bank:7

             description: DIMM DDR Synchronous 200 MHz (5.0 ns) [empty]

             physical id: 7

             slot: DIMM 08

             width: 64 bits

             clock: 200MHz (5.0ns)

     *-pci:0

          description: Host bridge

          product: CMIC-HE

          vendor: Broadcom

          physical id: 100

          bus info: pci@0000:00:00.0

          version: 22

          width: 32 bits

          clock: 33MHz

        *-system UNCLAIMED

             description: System peripheral

             product: Advanced System Management Controller

             vendor: Compaq Computer Corporation

             physical id: 2

             bus info: pci@0000:00:02.0

             version: 00

             width: 32 bits

             clock: 33MHz

             configuration: latency=0

        *-display UNCLAIMED

             description: VGA compatible controller

             product: Rage XL

             vendor: ATI Technologies Inc

             physical id: 3

             bus info: pci@0000:00:03.0

             version: 27

             width: 32 bits

             clock: 33MHz

             capabilities: pm vga_controller bus_master cap_list

             configuration: latency=64 mingnt=8

        *-network

             description: Ethernet interface

             product: 82557/8/9/0/1 Ethernet Pro 100

             vendor: Intel Corporation

             physical id: 4

             bus info: pci@0000:00:04.0

             logical name: eth0

             version: 08

             serial: 00:08:02:e0:af:0c

             size: 100MB/s

             capacity: 100MB/s

             width: 32 bits

             clock: 33MHz

             capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation

             configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.23-k4-N API duplex=full firmware=N/A ip=172.16.160.119 latency=64 link=yes maxlatency=56 mingnt=8 module=e100 multicast=yes port=MII speed=100MB/s

        *-scsi:0

             description: SCSI storage controller

             product: AHA-3960D / AIC-7899A U160/m

             vendor: Adaptec

             physical id: 5

             bus info: pci@0000:00:05.0

             logical name: scsi2

             version: 01

             width: 64 bits

             clock: 66MHz

             capabilities: scsi pm bus_master cap_list scsi-host

             configuration: driver=aic7 latency=64 maxlatency=25 mingnt=40 module=aic7

        *-scsi:1

             description: SCSI storage controller

             product: AHA-3960D / AIC-7899A U160/m

             vendor: Adaptec

             physical id: 5.1

             bus info: pci@0000:00:05.1

             logical name: scsi3

             version: 01

             width: 64 bits

             clock: 66MHz

             capabilities: scsi pm bus_master cap_list scsi-host

             configuration: driver=aic7 latency=64 maxlatency=25 mingnt=40 module=aic7

           *-processor UNCLAIMED

                description: SCSI Processor

                product: PROLIANT 4L6I

                vendor: COMPAQ

                physical id: 0.f.0

                bus info: scsi@3:0.15.0

                version: 1.78

                serial: #

                configuration: ansiversion=2

        *-isa

             description: ISA bridge

             product: CSB5 South Bridge

             vendor: Broadcom

             physical id: f

             bus info: pci@0000:00:0f.0

             version: 93

             width: 32 bits

             clock: 33MHz

             capabilities: isa bus_master

             configuration: driver=piix4_smbus latency=64 module=i2c_piix4

        *-ide

             description: IDE interface

             product: CSB5 IDE Controller

             vendor: Broadcom

             physical id: f.1

             bus info: pci@0000:00:0f.1

             logical name: scsi1

             version: 93

             width: 32 bits

             clock: 33MHz

             capabilities: ide bus_master emulated

             configuration: driver=pata_serverworks latency=64 module=pata_serverworks

           *-cdrom

                description: DVD-RAM writer

                product: DVDRAM GSA-H42L

                vendor: HL-DT-ST

                physical id: 0.0.0

                bus info: scsi@1:0.0.0

                logical name: /dev/cdrom

                logical name: /dev/cdrw

                logical name: /dev/dvd

                logical name: /dev/dvdrw

                logical name: /dev/scd0

                logical name: /dev/sr0

                version: SL00

                capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram

                configuration: ansiversion=5 status=nodisc

        *-usb

             description: USB Controller

             product: OSB4/CSB5 OHCI USB Controller

             vendor: Broadcom

             physical id: f.2

             bus info: pci@0000:00:0f.2

             version: 05

             width: 32 bits

             clock: 33MHz

             capabilities: ohci bus_master

             configuration: driver=ohci_hcd latency=64 maxlatency=80 module=ohci_hcd

           *-usbhost

                product: OHCI Host Controller

                vendor: Linux 2.6.27.12-170.2.5.fc10.i686 ohci_hcd

                physical id: 1

                bus info: usb@1

                logical name: /dev/usb1

                version: 2.06

                capabilities: usb-1.10

                configuration: driver=hub slots=4 speed=12.0MB/s

     *-pci:1

          description: Host bridge

          product: CMIC-HE

          vendor: Broadcom

          physical id: 101

          bus info: pci@0000:00:00.1

          version: 00

          width: 32 bits

          clock: 33MHz

     *-pci:2

          description: Host bridge

          product: CMIC-HE

          vendor: Broadcom

          physical id: 102

          bus info: pci@0000:00:00.2

          version: 00

          width: 32 bits

          clock: 33MHz

     *-pci:3

          description: Host bridge

          product: CMIC-HE

          vendor: Broadcom

          physical id: 103

          bus info: pci@0000:00:00.3

          version: 00

          width: 32 bits

          clock: 33MHz

     *-pci:4

          description: Host bridge

          product: CSB5 LPC bridge

          vendor: Broadcom

          physical id: 104

          bus info: pci@0000:00:0f.3

          version: 00

          width: 32 bits

          clock: 33MHz

     *-pci:5

          description: Host bridge

          product: CIOB30

          vendor: Broadcom

          physical id: 105

          bus info: pci@0000:00:10.0

          version: 03

          width: 32 bits

          clock: 66MHz

          configuration: latency=64

     *-pci:6

          description: Host bridge

          product: CIOB30

          vendor: Broadcom

          physical id: 106

          bus info: pci@0000:00:10.2

          version: 03

          width: 32 bits

          clock: 66MHz

          configuration: latency=64

     *-pci:7

          description: Host bridge

          product: CIOB30

          vendor: Broadcom

          physical id: 107

          bus info: pci@0000:00:11.0

          version: 03

          width: 32 bits

          clock: 66MHz

          configuration: latency=64

     *-pci:8

          description: Host bridge

          product: CIOB30

          vendor: Broadcom

          physical id: 108

          bus info: pci@0000:00:11.2

          version: 03

          width: 32 bits

          clock: 66MHz

          configuration: latency=64

     *-pci:9

          description: PCI bridge

          product: PCI-X to PCI-X Bridge

          vendor: IBM

          physical id: 1

          bus info: pci@0000:01:01.0

          version: 02

          width: 32 bits

          clock: 66MHz

          capabilities: pci pcix pm normal_decode bus_master cap_list

        *-storage

             description: RAID bus controller

             product: Smart Array 64xx

             vendor: Compaq Computer Corporation

             physical id: 4

             bus info: pci@0000:02:04.0

             version: 01

             width: 64 bits

             clock: 66MHz

             capabilities: storage pm pcix vpd bus_master cap_list

             configuration: driver=cciss latency=64 module=cciss

     *-system:0

          description: PCI Hot-plug controller

          product: PCI Hotplug Controller

          vendor: Compaq Computer Corporation

          physical id: 2

          bus info: pci@0000:01:1e.0

          version: 14

          width: 64 bits

          clock: 66MHz

          capabilities: msi pcix pm cap_list

          configuration: driver=compaq_pci_hotplug latency=0 module=cpqphp

     *-system:1

          description: PCI Hot-plug controller

          product: PCI Hotplug Controller

          vendor: Compaq Computer Corporation

          physical id: 3

          bus info: pci@0000:05:1e.0

          version: 14

          width: 32 bits

          clock: 66MHz

          capabilities: msi pcix pm cap_list

          configuration: driver=compaq_pci_hotplug latency=0 module=cpqphp

  *-network DISABLED

       description: Ethernet interface

       physical id: 1

       logical name: pan0

       serial: 96:03:b6:3d:ac:89

       capabilities: ethernet physical

       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes

[root@fedora10 ~]#

 




lo loop back network interface device configuration file on Linux Fedora 10



Computer Configuration GNU Linux Fedora using Linux Command

 

   The example below show the lo loop back network interface configuration file on Linux Fedora 10.  The lo loop back network interface device configuration file on Linux Fedora 10 located under /etc/sysconfig/network-scripts directory.  The guide below, list the command examle to show the lo loop back interface device configuration file on Linux Fedora 10.

 

Show lo loop back network interface device configuration properties:

1.  Change user using su command.  Command use: $ su or $ su -

Change user using su command

[fedora10@fedora ~]$ su

Password:

[root@fedora fedora10]#

 

2.  Change to network scripts configuration directory.  Command use: # cd /etc/sysconfig/network-scripts/

Network scripts configuration directory

[root@fedora fedora10]# cd /etc/sysconfig/network-scripts/

[root@fedora network-scripts]#

 

then use pwd command to verify.  Command use: # pwd 

[root@fedora network-scripts]# pwd

/etc/sysconfig/network-scripts

[root@fedora network-scripts]#

 

3.  List contents inside directory using ls command... command output below show the contents of network-scripts directory on Linux Fedora 10.  Command use: # ls or # ls /etc/sysconfig/network-scripts/

Contents of network-scripts directory on Linux Fedora 10

[root@fedora network-scripts]# ls

ifcfg-eth0    ifdown-ppp     ifup-ipsec   ifup-sl

ifcfg-lo      ifdown-routes  ifup-ipv6    ifup-tunnel

ifdown        ifdown-sit     ifup-ipx     ifup-wireless

ifdown-bnep   ifdown-sl      ifup-isdn    init.ipv6-global

ifdown-eth    ifdown-tunnel  ifup-plip    net.hotplug

ifdown-ippp   ifup           ifup-plusb   network-functions

ifdown-ipsec  ifup-aliases   ifup-post    network-functions-ipv6

ifdown-ipv6   ifup-bnep      ifup-ppp

ifdown-isdn   ifup-eth       ifup-routes

ifdown-post   ifup-ippp      ifup-sit

[root@fedora network-scripts]#

 

4.  To show the lo configuration file on Linux terminal use cat command as show on example below.  Command use: # cat ifcfg-lo or # cat /etc/sysconfig/network-scripts/ifcfg-lo

 lo loop back network interface configuration file

[root@fedora network-scripts]# cat ifcfg-lo

DEVICE=lo

IPADDR=127.0.0.1

NETMASK=255.0.0.0

NETWORK=127.0.0.0

# If you're having problems with gated making 127.0.0.0/8 a martian,

# you can change this to something else (255.255.255.255, for example)

BROADCAST=127.255.255.255

ONBOOT=yes

NAME=loopback

[root@fedora network-scripts]#

 

5.  To show lo device configuration file using graphical text editor gedit... execute command as show on example below on Linux Fedora 10 X terminal...   Command use: # gedit ifcfg-lo &  or # gedit /etc/sysconfig/network-scripts/ifcfg-lo &

View loop back lo device properties

[root@fedora network-scripts]# gedit ifcfg-lo &

[root@fedora network-scripts]#

 




Step by Step Test Network Connectivity on Linux Fedora Using ping Command



Computer Configuration GNU Linux Fedora using Linux Command

 

   The example below show step by step to test network connectivity with other host using ping command on Linux Fedora machine.  Why we need to ping?  Ping just a tool that use to test your host computer networking connection reach other host (other computer) on the network or internet... usually people use ping to troubleshoot network connection.  The example below use ping command (ping program) to test network connectivity between my Linux Fedora machine at home to yahoo.com server computer (on the internet).  Please note that the example here only show the example on ping yahoo.com... you can change the yahoo.com to other host as you wish.

 

Test network connectivity between host computer to yahoo.com using dns.

Test ping network connectivity

[root@fedora ~]# ping yahoo.com

PING yahoo.com (206.190.60.37) 56(84) bytes of data.

64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=1 ttl=47 time=389 ms

64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=2 ttl=47 time=393 ms

64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=3 ttl=47 time=392 ms

64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=4 ttl=47 time=384 ms

64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=5 ttl=47 time=388 ms

^C

--- yahoo.com ping statistics ---

6 packets transmitted, 5 received, 16% packet loss, time 5211ms

rtt min/avg/max/mdev = 384.550/389.639/393.477/3.065 ms

[root@fedora ~]#

 

Test network connectivity between host computer to yahoo.com using IP address.

Test network connectivity between host computer to yahoo.com using IP address

[root@fedora ~]# ping 206.190.60.37

PING 206.190.60.37 (206.190.60.37) 56(84) bytes of data.

64 bytes from 206.190.60.37: icmp_seq=1 ttl=47 time=391 ms

64 bytes from 206.190.60.37: icmp_seq=2 ttl=47 time=393 ms

64 bytes from 206.190.60.37: icmp_seq=3 ttl=47 time=383 ms

64 bytes from 206.190.60.37: icmp_seq=4 ttl=47 time=387 ms

64 bytes from 206.190.60.37: icmp_seq=5 ttl=47 time=392 ms

64 bytes from 206.190.60.37: icmp_seq=6 ttl=47 time=388 ms

^C

--- 206.190.60.37 ping statistics ---

7 packets transmitted, 6 received, 14% packet loss, time 6122ms

rtt min/avg/max/mdev = 383.411/389.625/393.926/3.608 ms

[root@fedora ~]#

 

Note: On Linux Fedora, to stop or cancel the ping process from keep pinging... press Ctrl + c key