Sie sind auf Seite 1von 5

6/22/2017 StankowicdevelopmentGetcontrollerorLUNWWN/WWIDunderHPUX

(http://www.stankowic-development.net) Stankowic development

VMware, Linux and more

Get controller or LUN WWN / WWID under HP-UX


4 years ago No Comments Share
in HP-UX (http://www.stankowic-development.net/?cat=134&lang=en) and XING / LinkedIn / Amazon
(http://www.stankowic-development.net/?cat=259&lang=en)

(/?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...

Unfortunately this approach is not really time-saving.

(/?p=5166&lang=en&format=pdf)

Tweet (https://twitter.com/share) 0

RELATED ARTICLES

Short tip: Congure HP Smart Array Controller using EFI Shell


New HP Smart Array controllers built into a HP Integrity machine are basically uncongured.
When running the EFI Shell, you will probably see the following... (http://www.stankowic-
development.net/?p=7061&lang=en)

Short tip: Gather HP SmartArray cache battery information under HP-UX


When a RAID controllers cache battery fails it is a benet if you can gather the spare part
number without any downtime. If your server is equipped with... (http://www.stankowic-
development.net/?p=6244&lang=en)

Short tip: create screenshots under HP-UX


If you want to create a screenshot of your HP-UX system and dont have GIMP installed, you

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*

E-Mail-Benachrichtigung bei weiteren Kommentaren.


Auch mglich: Abo ohne Kommentar (http://www.stankowic-development.net/?
page_id=99999&srp=5166&srk=d9b56ad0968476e1fb1f52cea5dcb6c6&sra=s&srsrc=f).

Post Comment

Deutsch (http://www.stankowic-development.net/?p=5166&lang=de) English


(http://www.stankowic-development.net/?p=5166&lang=en)

Copyright 2017 Christian Stankowic www.stankowic-development.net (http://www.stankowic-development.net)

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

Das könnte Ihnen auch gefallen