Operating System - HP-UX
1833598 Members
3924 Online
110061 Solutions
New Discussion

Re: Converting nport id to hardware path

 
Jino.P.V
Frequent Advisor

Converting nport id to hardware path

Hi all,

I have a system configured with FC. I find some problem with one nport ID 0x660e13 which cause kernel giving sparce error. I want to convert this to hardware path so that I can pin point to the device which creates problem.
Can any one guide me how to convert this nport id to Hardware path. The device is not disk anyway.

thanks...a...lot...
6 REPLIES 6
Venkatesan_5
Frequent Advisor

Re: Converting nport id to hardware path

Hi Jino,

Please go thru the pdf file....quiet useful info are given in flowcharts,commands step-by-step diagnostic procedure....hope this may help u...

www.docs.hp.com/en/32650-90910/32650-90910.pdf

regds
Venkatesan.
ramkumar
Valued Contributor

Re: Converting nport id to hardware path



Hi nport id is very helpful in findind the particular device is connected to on which port of Switch and on which switch.

Example
0xaabbcc

aa- domain id of switch in hex (00-f3)
bb- decimal port number of swich (0-15)
cc- ALPA (Arbitrated Loop Priority Address)
saju_2
Respected Contributor

Re: Converting nport id to hardware path

Hi

If it is a FC card attached to your server, You do a ioscan -fnCfc on that server. In the output you will get the device file eg(/dev/td0).

execute fcmsutil /dev/td0. This will give a detailed description about the fibre card like the wwn number, nport id etc.

Regards
CS
Devender Khatana
Honored Contributor

Re: Converting nport id to hardware path

Hi,

fcmsutil reports both Hardware path & Nport ID within same out put so you should not have any problems in isolating this.
Find out the fs cards in your system & then run fcmsutil command on the device files for the cards.
#ioscan -fnC fc
fc 0 0/1/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 0/2/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
fc 2 0/3/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td2
fc 3 0/5/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td3


#fcmsutil /dev/td0
Vendor ID is = 0x00103c
Device ID is = 0x001028
TL Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x000006
Topology = PRIVATE_LOOP
Local N_Port_id is = 0x000001 ------->
Local Loop_id is = 125
N_Port Node World Wide Name = 0x50060b00000bb4db
N_Port Port World Wide Name = 0x50060b00000bb4da
Driver state = ONLINE
Hardware Path is = 0/4/0/0 ------->
Number of Assisted IOs = 265315914
Number of Active Login Sessions = 1
Dino Present on Card = NO
Maximum Frame Size = 960
Driver Version = @(#) PATCH_11.11: libtd.a : Dec 12 2003, 14:34:15, PHSS_28509

Here is what you are asking for.

HTH,
Devender
Impossible itself mentions "I m possible"
Jino.P.V
Frequent Advisor

Re: Converting nport id to hardware path

Hi Devender,

What you have shown is ok. I also know that. But I think Ramkumar was some more clear explaining the relation between the nport id and hardware path(how system is resolving the hardware path from nport id). If give fcmsutil command it will give some info. It will show nport id and wwn. I have a particlular nport id which creates some problem. This is in the syslog. I know what is the reason too. It is because some hardware connected to FC is removed without rebooting the system. So I want to pin point to that particular device. That is the reason why I want to decode the nportid. In fcmsutil it will give the hardware path of the FC. Not the whole path of the device. Could you please explain that?

regards

Jino
aliasgar
Valued Contributor

Re: Converting nport id to hardware path

Hi Jino,


Could you please take ioscan output as file and attach it to this post .

let me see how can i help you.


Regards,
Aliasgar.
aliasgar