Getting LUN numbers using Powershell and the 3PAR toolkit
Posted: Wed Dec 14, 2016 4:01 pm
Hi,
To make our lives easier I was looking to extract the LUN numbers for a given selection of virtual volumes but there appears to be some inconsistancy on when LUN numbers are available. If I run the powershell script below I only get LUN numbers for virtual volumes that were not part of a virtual set and and not exported to s host set.
Does anybody have any ideas how to get a complete list of LUN numbers?
$vv_list = Get-3parVV | Select name | Where-Object {$_.name -Like "xyz*"}
foreach ($vv_item in $vv_list)
{
$vv_name = $vv_item.name
$vv_lun = (Get-3parVLUN -vvName $vv_name).LunID
Write-Host $vv_name $vv_lun
}
To make our lives easier I was looking to extract the LUN numbers for a given selection of virtual volumes but there appears to be some inconsistancy on when LUN numbers are available. If I run the powershell script below I only get LUN numbers for virtual volumes that were not part of a virtual set and and not exported to s host set.
Does anybody have any ideas how to get a complete list of LUN numbers?
$vv_list = Get-3parVV | Select name | Where-Object {$_.name -Like "xyz*"}
foreach ($vv_item in $vv_list)
{
$vv_name = $vv_item.name
$vv_lun = (Get-3parVLUN -vvName $vv_name).LunID
Write-Host $vv_name $vv_lun
}