vxgetdmpnames - obtain the current names of DMP devices
/etc/vx/bin/vxgetdmpnames [dmpnodename=dmpnode1,dmpnode2,...] [enclosure=enclr1,enclr2,...]
The vxgetdmpnames utility obtains the current names of DMP devices in the format that can be used by the file option of the vxddladm assign names command. Direct the output of the vxgetdmpnames utility to a file, and specify the file name as input to the vxddladm assign names command. You can edit the file if necessary.If you run the vxgetdmpnames utility without any arguments, it displays all of the DMP devices configured on the system. If you specify the dmpnodename or enclosure arguments, then the corresponding DMP devices are displayed.
dmpnodename=dmpnode1,dmpnode2,... Indicates a comma-separated list of DMP devices to be included in the selection. enclosure=enclr1,enclr2,... Indicates a comma-separated list of enclosures whose DMP devices are to be included in the selection.
To select all the DMP devices
To select DMP devices in enclosure disk# /etc/vx/bin/vxgetdmpnames enclosure vendor=SEAGATE product=ST336607LSUN36G serial=DISKS name=disk dmpnode serial=303432354139303747590000 name=disk_0 dmpnode serial=30343235413930424C300000 name=disk_1 dmpnode serial=30343238413933595A360000 name=disk_2 enclosure vendor=HITACHI product=DF600F serial=77011046 name=ams_wms0 dmpnode serial=0008 name=ams_wms0_8 dmpnode serial=0009 name=ams_wms0_9 dmpnode serial=000A name=ams_wms0_10 . . .
# /etc/vx/bin/vxgetdmpnames enclosure=disk enclosure vendor=SEAGATE product=ST336607LSUN36G serial=DISKS name=disk dmpnode serial=303432354139303747590000 name=disk_0 dmpnode serial=30343235413930424C300000 name=disk_1 dmpnode serial=30343238413933595A360000 name=disk_2To select DMP devices mentioned# /etc/vx/bin/vxgetdmpnames dmpnodename=disk_1,disk_2 enclosure vendor=SEAGATE product=ST336607LSUN36G serial=DISKS name=disk dmpnode serial=30343235413930424C300000 name=disk_1 dmpnode serial=30343238413933595A360000 name=disk_2To redirect output and use it with vxddladm assign names CLI# /etc/vx/bin/vxgetdmpnames dmpnodename=disk_1,disk_2 > /tmp/names.out # /usr/sbin/vxddladm assign names file=/tmp/names.out
vxddladm(1M)
VxVM 7.3.1 | vxgetdmpnames(1M) |