To find out which version of PowerShell you are using, run the following in PowerShell;
$PSVersionTable.PSVersion
You will get an output similar to;
Major Minor Build Revision
----- ----- ----- --------
5 0 10586 117
***** This formula only works if the LUN number isn't too high (ie over 100ish) *****
The disk in HP-UX has the identifier /dev/dsk/cxtydz
Take the /cxtydz portion and apply the formula below;
(y x 8) + z
This should give you the LUN number from the SAN device. In the example below this would be;
c52t2d1
t =2, d = 1
(2 x 8) + 1 = 17
LUN number is 17