Operating System - Linux
1826055 Members
4524 Online
109690 Solutions
New Discussion

Re: How to find out the H/W path of the installed devices in Linux

 
SOLVED
Go to solution
Phani Varma
Occasional Advisor

How to find out the H/W path of the installed devices in Linux

Hi,

How to find out the H/W path of the installed devices in Linux...and how to interpret the H/W path in the Inter Servers to find out which I/O card installed on which slot...

Can some body please help me on this...Refer if any documents available which explains about the H/W configuration.

Thanks in advance,
Phani Varma P
10 REPLIES 10
Alexander Chuzhoy
Honored Contributor

Re: How to find out the H/W path of the installed devices in Linux

lspci -vv gives information about interrupts/IO for installed cards
Phani Varma
Occasional Advisor

Re: How to find out the H/W path of the installed devices in Linux

Thanks for your reply..

When i gave "lspci -v" i got the below output..

02:0c.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet Controller (rev 02)
Subsystem: Dell Computer Corporation: Unknown device 0151
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 18
Memory at fcfe0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at df40 [size=64]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device.
Capabilities: [f0] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-


In the first line the H/W path has given...i.e "02:0c.0"

How to interpret this H/W path to find out on which i/o slot the ethernet card was installed.
from 02:0c.0....what is 02, & what is 0c, & what is 0 ?

Regards,
Phani
Vernon Brown_4
Trusted Contributor

Re: How to find out the H/W path of the installed devices in Linux

Each eth card has a hex factory assigned hardware address that it recognizes as its own address. When you assign an IP address to the card you are really making an alias for that hardware address.

You can use

ifconfig -a

to find review the assignments your system has made to all your hardware addresses.

Vern
Shaikh Imran
Honored Contributor

Re: How to find out the H/W path of the installed devices in Linux

Hi,
Try this:
dmesg (if you're lucky)
/proc/cpuinfo
/proc/pci
/proc/meminfo
/proc/interrupts
/proc/ioports

Regards,


I'll sleep when i am dead.
Shaikh Imran
Honored Contributor

Re: How to find out the H/W path of the installed devices in Linux

Hi,
Also you can try hwconfig.

Regards,

I'll sleep when i am dead.
Vitaly Karasik_1
Honored Contributor

Re: How to find out the H/W path of the installed devices in Linux

HP sw can help you too, if you work with HP servers:

http://h18004.www1.hp.com/support/files/server/us/locate/88_4706.html
Stefan Stechemesser
Honored Contributor
Solution

Re: How to find out the H/W path of the installed devices in Linux

Hi Phani,

>from 02:0c.0....what is 02, & what is 0c, & what is 0 ?

02 => PCI Bus 2
0c => Device 12
0 => Function 0 (double port cards may have more than one function)

Unfortunately this does not help you. You need a block diagram of the server/PC to know which Slot belongs to Device 0c on PCI Bus 02 ...
Phani Varma
Occasional Advisor

Re: How to find out the H/W path of the installed devices in Linux

Dear Stefan,

Thanks alot for your information...you have provided what exactly i am looking for..

Thanks & Regards,
Phani Varma P.
Craig Gilmore
Trusted Contributor

Re: How to find out the H/W path of the installed devices in Linux

Phani,

In addition to what has already been provided, I would recommend the utility: lshw.

It is available on: http://sourceforge.net/software/lshw.html

You'll need to compile it, but it will give you a quick listing of all hardware, and path to the hardware, on the system.
Stefan Stechemesser
Honored Contributor

Re: How to find out the H/W path of the installed devices in Linux

Hi Craig,

the correct location is

http://ezix.sourceforge.net/software/lshw.html

Seems to be a nice tool, I will try it ;-)

Stefan