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

Re: PowerCLI script for vSphere capacity planning

$
0
0

I'm seeing error messages for one of my clusters during the resiliency report.

 

Gathering Cluster Resilience Information for Cluster

Method invocation failed because [System.Object[]] does not contain a method named 'op_Subtraction'.

At C:\Scripts\CPReport-v2.1-Community-Edition.ps1:496 char:4

+             $ClusterFreeMemory = $ClusterTotalMemory - $ClusterUsedMemory - $ACPolicyInte ...

+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (op_Subtraction:String) [], RuntimeException

    + FullyQualifiedErrorId : MethodNotFound

 

Method invocation failed because [System.Object[]] does not contain a method named 'op_Subtraction'.

At C:\Scripts\CPReport-v2.1-Community-Edition.ps1:499 char:4

+             $ClusterFreeMemoryPercentage = $ClusterFreeMemoryPercentage - $ACPolicyIntege ...

+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (op_Subtraction:String) [], RuntimeException

    + FullyQualifiedErrorId : MethodNotFound

 

Method invocation failed because [System.Object[]] does not contain a method named 'op_Division'.

At C:\Scripts\CPReport-v2.1-Community-Edition.ps1:512 char:4

+             $HAReservedMemory = ($ACPolicyInteger/100) * ($ClusterTemp | Get-VMHost | Mea ...

+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (op_Division:String) [], RuntimeException

    + FullyQualifiedErrorId : MethodNotFound

 

           Creating chart...

Exception calling "DataBindXY" with "2" argument(s): "Data points insertion error. Number of X values is less than Y values

Parameter name: xValue"

At C:\Scripts\CPReport-v2.1-Community-Edition.ps1:608 char:2

+     $Chart.Series["Data"].Points.DataBindXY($NameArray, $ValueArray) #Modified by M ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : ArgumentOutOfRangeException

I saw someone had a similar issue, but did not see a resolution. It only happens with one cluster. Any ideas as to why?


Viewing all articles
Browse latest Browse all 230613

Trending Articles



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