Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: How do I run vmkfstools command with PowerCLI for 5.1 and 5.5

$
0
0

PowerCLI C:\> $h = Get-VMHost
PowerCLI C:\> $esxcli = Get-EsxCli -VMHost $h
PowerCLI C:\> $Luns = $h | Get-ScsiLun | Select CanonicalName
PowerCLI C:\> ForEach ($Lun in $Luns) {
>> $esxcli.storage.core.device.vaai.status.get($Lun.CanonicalName) | Select Device, ATSStatus
>> }
>>
Cannot convert argument "0", with value: "mpx.vmhba1:C0:T1:L0", for "Get" to type "System.Int32": "Cannot convert value "mpx.vmhba1:C0:T1:L0" to type "System.Int32". Error: "Input string was not in
a correct format.""
At line:2 char:1
+ $esxcli.storage.core.device.vaai.status.get($Lun.CanonicalName) | Select Device, ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

Cannot convert argument "0", with value: "mpx.vmhba1:C0:T0:L0", for "Get" to type "System.Int32": "Cannot convert value "mpx.vmhba1:C0:T0:L0" to type "System.Int32". Error: "Input string was not in
a correct format.""
At line:2 char:1
+ $esxcli.storage.core.device.vaai.status.get($Lun.CanonicalName) | Select Device, ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

Cannot convert argument "0", with value: "mpx.vmhba32:C0:T0:L0", for "Get" to type "System.Int32": "Cannot convert value "mpx.vmhba32:C0:T0:L0" to type "System.Int32". Error: "Input string was not
in a correct format.""
At line:2 char:1
+ $esxcli.storage.core.device.vaai.status.get($Lun.CanonicalName) | Select Device, ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

Cannot convert argument "0", with value: "m




from SSH I get


[root@localhost:~] esxcli storage core device vaai status get
mpx.vmhba1:C0:T1:L0
VAAI Plugin Name:
ATS Status: unsupported
Clone Status: unsupported
Zero Status: unsupported
Delete Status: unsupported

mpx.vmhba1:C0:T0:L0
VAAI Plugin Name:
ATS Status: unsupported
Clone Status: unsupported
Zero Status: unsupported
Delete Status: unsupported

mpx.vmhba32:C0:T0:L0
VAAI Plugin Name:
ATS Status: unsupported
Clone Status: unsupported
Zero Status: unsupported
Delete Status: unsupported
[root@localhost:~]


which is what I would expect, so something is messing up in the conversion to powercli


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>