Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find WWID from DCL ?

 
SOLVED
Go to solution
Thomas Ritter
Respected Contributor

How to find WWID from DCL ?

How can I find the WWID of all installed adapters from DCL ?
8 REPLIES 8
Steven Schweda
Honored Contributor

Re: How to find WWID from DCL ?

I know nothing, but I'd look at some
combination of F$DEVICE (in a loop) to get
the device names, then F$GETDVI( x, "WWID")
to get their WWID values.

I assume that there's some combination of
DEVCLASS and/or DEVTYPE which would lead
F$DEVICE to the appropriate devices. If you
know of any, then F$GETDVI( x, "DEVCLASS")
and/or then F$GETDVI( x, "DEVTYPE") might
provide some clues.

I don't think that I have anything with a
WWID, so my ability to test anything is (so
far as I know) nil.
labadie_1
Honored Contributor

Re: How to find WWID from DCL ?

Steven offers a clean solution, but a basic

$ pipe sh dev /fu dg | sea sys$pipe disk,wwid

shows for me

Disk $1$DGA1: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-5C14-A694-D9C2-DE11
Disk $1$DGA2: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-2869-5FE8-D8C2-DE11
Disk $1$DGA3: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-E88D-4B21-D9C2-DE11
Disk $1$DGA4: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-3816-B6CF-D8C2-DE11
Disk $1$DGA5: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-9C7A-8EDE-D8C2-DE11
Disk $1$DGA6: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-10C3-D45D-D9C2-DE11
Disk $1$DGA7: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-7A42-667E-D9C2-DE11
Disk $1$DGA8: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-3EC7-DBB0-D9C2-DE11
Disk $1$DGA9: (ALPHA1), device type DGC RAID 5, is online, file-oriented device,
WWID 01000010:6006-0160-D119-2500-86BD-E900-D9C2-DE11
Disk $1$DGA10: (ALPHA1), device type DGC RAID 5, is online, file-oriented
WWID 01000010:6006-0160-D119-2500-32FD-3316-D9C2-DE11
Disk $1$DGA11: (ALPHA1), device type DGC RAID 5, is online, file-oriented
WWID 01000010:6006-0160-D119-2500-8434-DE2D-D9C2-DE11
Disk $1$DGA12: (ALPHA1), device type DGC RAID 5, is online, file-oriented
WWID 01000010:6006-0160-D119-2500-2830-3E38-D9C2-DE11
Disk $1$DGA13: (ALPHA1), device type DGC RAID 5, is online, file-oriented
WWID 01000010:6006-0160-D119-2500-5471-6643-D9C2-DE11
Disk $1$DGA14: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-8869-CB21-5BC2-DE11
Disk $1$DGA15: (ALPHA1), device type DGC RAID 5, is online, mounted, file-
WWID 01000010:6006-0160-D119-2500-4E8E-494E-D9C2-DE11
$

It depends what you want to do with this data
Fekko Stubbe
Valued Contributor
Solution

Re: How to find WWID from DCL ?

Maybe you want the WWID address of the HBA?

$ANA/SYS
SDA>fc show device fga0

Toine_1
Regular Advisor

Re: How to find WWID from DCL ?

Hi,

or use SANCP

SANCP is a an OpenVMS system management utility which allows a
suitably privileged user to perform various Storage Area Network
tuning and monitoring tasks. The user must have the OPER privilege
authorized, but it need not be currently enabled


NVI$ mc sancp
SANCP> sho wwid
| Conn Port Dev Cred Appr | QF Cred User Current
Product ID Node WWID Port WWID | Cnt I/Os I/Os I/Os I/Os | Seen Avl Cap QF Alg
---------------- ------------------- ------------------- + ---- ---- ---- ---- ---- + ---- ---- ---- -------
HSG80CCL 5000.1FE1.0016.3050 5000.1FE1.0016.3052 | 0001 0000 0000 0000 0000 | 0000 8000 0000 T/5000
HSG80CCL 5000.1FE1.0016.3050 5000.1FE1.0016.3054 | 0001 0000 0000 0000 0000 | 0000 8000 0000 T/5000
HSV300 5001.4380.025A.A490 5001.4380.025A.A499 | 0001 0000 0000 0000 0000 | 0000 0008 0008 T/5000
HSV300 5001.4380.025A.A490 5001.4380.025A.A49D | 0001 0000 0000 0000 0000 | 0000 8000 0000 T/5000
HSV300 5001.4380.025A.A800 5001.4380.025A.A809 | 0001 0000 0000 0000 0000 | 0000 0008 0008 T/5000
HSV300 5001.4380.025A.A800 5001.4380.025A.A80D | 0001 0000 0000 0000 0000 | 0000 0008 0008 T/5000

SANCP> help

Information available:

Overview SET_Command SHOW_Command WWIDs

Topic? show

SHOW_Command

Shows WWID characteristics

SHOW WWID /PRODUCT_ID=
/PORT=



Additional information available:

/PORT= /PRODUCT_ID=


/Toine
Art Wiens
Respected Contributor

Re: How to find WWID from DCL ?

$ pipe show dev/full gg | sea sys$pipe "device type",wwid
Device $1$GGA2:, device type HP HSV210, is online, shareable, device has
WWID 02000008:5000-1FE1-5007-0B80
Device $1$GGA3:, device type HP HSV210, is online, shareable, device has
WWID 02000008:5000-1FE1-5007-0B90
Device $1$GGA4:, device type HP HSV210, is online, shareable, device has
WWID 02000008:5000-1FE1-500C-6B00
Device $1$GGA5:, device type HP HSV210, is online, shareable, device has
WWID 02000008:5000-1FE1-500C-6AE0

Cheers,
Art
Hoff
Honored Contributor

Re: How to find WWID from DCL ?

FWIW, it'd be nice if there were a logical volume manager available here; the ability to configure and manage and monitor disks (and takes) without having to go rummage for WWIDs, volume labels, shadowset membership and other such.
Bill Hall
Honored Contributor

Re: How to find WWID from DCL ?

How about something like...

$START:
$ DEVICE_NAME = F$DEVICE("_FG%0:","BUS")
$ IF DEVICE_NAME .EQS. "" THEN EXIT
$ WRITE SYS$OUTPUT DEVICE_NAME + " FC Port Name: " + F$GETDVI(DEVICE_NAME,"FC_PORT_NAME")
$ WRITE SYS$OUTPUT DEVICE_NAME + " FC Node Name: " + F$GETDVI(DEVICE_NAME,"FC_NODE_NAME")
$ GOTO START

Bill
Bill Hall
Thomas Ritter
Respected Contributor

Re: How to find WWID from DCL ?

Good answers.
Tonie, we run VMS 7.3-2 and $MC SANCP does not live here.