Beruflich Dokumente
Kultur Dokumente
(/?p=5166&lang=en&format=pdf)
Reading the World Wide Name (WWN) / World Wide Identier (WWID) of a controller or a LUN is not
always easy unter HP-UX depending on the release. Especially under the older releases 11.11 and
11.23 additional tools are required to get the requested information this is much easier under 11.31.
Controller information
Using ioscan a overview about mounted Fibre-channel cards:
#ioscanfnkCfc
ClassIH/WPathDriverS/WStateH/WTypeDescription
========================================================================
fc00/3/0/0/0/0fcdCLAIMEDINTERFACEHPAD300A4GbDualPortPCIeFibre
ChannelAdapter(FCPort1)
/dev/fcd0
fc10/3/0/0/0/1fcdCLAIMEDINTERFACEHPAD300A4GbDualPortPCIeFibre
ChannelAdapter(FCPort2)
/dev/fcd1
Depending on the controller type (td/fcd driver) one of the following tools are executed and combined
with grep to get the Port WWN/WWID:
#fcmsutil/dev/fcd0|grep"N_PortPortWorldWideName"
N_PortPortWorldWideName=0x500...
#tdutil/dev/td0|grep"N_PortPortWorldWideName"
N_PortPortWorldWideName=0x500...
Alternatively you can use the fcmsutil utility this tool automatically chooses the required sub tool:
http://www.stankowicdevelopment.net/?p=5166&lang=en 1/5
6/22/2017 StankowicdevelopmentGetcontrollerorLUNWWN/WWIDunderHPUX
#fcmsutil/dev/fcd0|grep"N_PortPortWorldWideName"
N_PortPortWorldWideName=0x500
LUN information
Under HP-UX 11.31 ioscan has been updated and so its able to get the WWID of a LUN e.g. for hard
drives:
#ioscankCdiskPwwid
ClassIH/WPathwwid
===============================
disk264000/0xfa00/0x10x500...
disk364000/0xfa00/0x30x500...
...
This feature doesnt exist under HP-UX 11.11 and 11.23 using this releases youll have to use the above-
mentioned tool:
#fcmsutil/dev/fcd0getremoteall
TargetN_Port_idis=0x0b1b00
Targetstate=DSM_UNOPENED
SymbolicName=
PortType=UNKNOWN
FCP2Support=NO
TargetPortWorldWideName=0x500...
TargetNodeWorldWideName=0x500...
Unfortunately, the assigment between hard drive and WWID isnt clearly obvious. Using lssf you can
determine the associated controller and list all connected devices using fcmsutil. If the list of connected
devices isnt too long, you can nd the correct device with some luck:
http://www.stankowicdevelopment.net/?p=5166&lang=en 2/5
6/22/2017 StankowicdevelopmentGetcontrollerorLUNWWN/WWIDunderHPUX
#lssf/dev/dsk/c57t0d3
sdiskcardinstance57SCSItarget0SCSILUN3section0ataddress0/7/0/0/0/0.50.12.0.1.0.3
/dev/dsk/c57t0d3
#ioscanH0/7/0/0/0/0fnCfc
ClassIH/WPathDriverS/WStateH/WTypeDescription
========================================================================
fc20/7/0/0/0/0fcdCLAIMEDINTERFACEHPAD300A4GbDualPortPCIeFibre
ChannelAdapter(FCPort1)
/dev/fcd2
#fcmsutil/dev/fcd2getremoteall
...
TargetN_Port_idis=0x996900
Targetstate=DSM_READY
SymbolicName=IBM21450000
PortType=N_PORT
FCP2Support=NO
TargetPortWorldWideName=0x500...
TargetNodeWorldWideName=0x500...
(/?p=5166&lang=en&format=pdf)
Tweet (https://twitter.com/share) 0
RELATED ARTICLES
http://www.stankowicdevelopment.net/?p=5166&lang=en 3/5
6/22/2017 StankowicdevelopmentGetcontrollerorLUNWWN/WWIDunderHPUX
can easily create a X dump using the xwd commandos. This... (http://www.stankowic-
development.net/?p=5578&lang=en)
LEAVE A REPLY
Name* Email*
Post Comment
http://www.stankowicdevelopment.net/?p=5166&lang=en 4/5
6/22/2017 StankowicdevelopmentGetcontrollerorLUNWWN/WWIDunderHPUX
http://www.stankowicdevelopment.net/?p=5166&lang=en 5/5