$A=get-vmhost vmhostName
PowerCLI D:\Scripts\RDMReport> Get-ScsiLun -VmHost $A
Get-ScsiLun : 27.3.2013 12:19:55 Get-ScsiLun Value cannot be null.
Parameter name: array
At line:1 char:12
+ Get-ScsiLun <<<< -VmHost $A
+ CategoryInfo : NotSpecified: (:) [Get-ScsiLun], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetScs
iLun
Hi All,
Bit weird issue i'm facing.
I've written a powershell script to grab the RDM details. But all of sudden things stopped working.
when I digged dipper I see get-scsilun is failing.
I see different results.
I see it is working perfectly fine on one cluster and but on another cluster it is not working.
anyone has seen any such problems?
Thank you,
Preetam
Are the ESXi hosts in $A of different builds ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD wrote:
Are the ESXi hosts in $A of different builds ?
Nope. They are all same.
In fact I have three vCenter
vCenter A -all 5.1
Cluster A -Works
Cluster B -doesn't works
Cluster C -Works
vCenter B - all 4.1
Cluster A -doesn't works
Cluster B -doesn't works
I found out that this is happening because of PowerPath V/E.
When I run the same script against environment where there is no PowerPath V/E it works.
However results are not consistent as mentioned above.
On some hosts it works and on some hosts it doesn't
Even PowerPath V/E same across all host.
Hope it helps.
any updates?
i have the same issue
Hi ,
Can you try something like that.
In my case, i use this kind of script :
$hostname= "ESXHOSTNAME.LOCAL"
$esxLun = Get-ScsiLun -VMHost $hostname | where {$_.CanonicalName -ilike "naa.*"} | select CanonicalName
Then my result.
CanonicalName
-------------
naa.60050768019001d2c00000000000069a
naa.60050768019001d2c0000000000007bc
naa.60050768019001d2c000000000000302
naa.60050768019001d2c000000000000303
naa.60050768019001d2c000000000000304
Julien.
hi
as long as you work with PPVE the get-scsilun is not relevant
because get-scsilun check the value of MultipathPolicy and when you use PPVE its blank (
shown as Unknown)
at the moment i working on PS1 script that marge EMC PP remote tools and PowerCli to get some results