How to get LUN WWN (i.e LUN mapped from a storage box say Symmetrix or clariion) in Solaris. fcinfo command does give the Target port wwn but what i'm looking for is the LUN WWN. Any help is appreciated.
-bash-3.00# for port in `fcinfo hba-port | grep Port | awk '{ print $4 }'`; do
> fcinfo remote-port -ls -p $port
> done
1 Like
My recommendation is always use the native tools of the storage vendors,
if you are searching for the WWN LUN, you can use the "inq" tool from emc
for example
inq.sol64 -no_dots -sym_wwn
the output is
-----------------------------------------------------------------------------------------------
Symmetrix Device Symm Serial # Device # WWN
-----------------------------------------------------------------------------------------------
/dev/rdsk/c6t50000972080A9D5Cd1s2 000192600679 00063 60000970000192600679533030303633
/dev/rdsk/c6t50000972080A9D5Cd2s2 000192600679 00064 60000970000192600679533030303634
/dev/rdsk/c6t50000972080A9D5Cd3s2 000192600679 00065 60000970000192600679533030303635
/dev/rdsk/c6t50000972080A9D5Cd4s2 000192600679 00066 60000970000192600679533030303636
/dev/rdsk/c6t50000972080A9D5Cd5s2 000192600679 00476 60000970000192600679533030343736
/dev/rdsk/c6t50000972080A9D5Cd6s2 000192600679 0047A 60000970000192600679533030343741
/dev/rdsk/c6t50000972080A9D5Cd7s2 000192600679 0047E 60000970000192600679533030343745