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

Re: List virtualportgroups in a cluster count VMs and VMhosts

$
0
0

This appears 6 times and then I get exactly what I want for the first datacenter (CG-CO-SBODEVDC). I have to assume that the errors I'm getting is one error per datacenter.

Get-Cluster : 2/11/2019 4:06:43 PM      Get-Cluster             VMHost parameter: Could not find any of the objects specified by name.

At line:2 char:1

+ Get-Cluster -PipelineVariable cluster

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

    + CategoryInfo          : ObjectNotFound: (VMware.VimAutom...VMHost[] VMHost:RuntimePropertyInfo) [Get-Cluster], ObnRecordProcessingFailedException

    + FullyQualifiedErrorId : Core_ObnSelector_SetNewParameterValue_ObjectNotFoundCritical,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetCluster

 

    

DatacenterClusterPortgroupVlanIdVMHostCountVMCount
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBManagement Network250040
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBvMotionB251140
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBvMotionA251140
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBNFS_172.28.4300440
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBStorageB251040
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBStorageA251040
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBNPR--10.15.80.0_24208040
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBNPR--10.15.190.0_23319040
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBNPR--10.15.182.0_24318241
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBSBO--10.15.184.0/22--NPR31844176
CG-CO-SBODEVDCCG-CO-SBODEV-ORADBNFS_Direct_172.28.5630564176

 

> Get-Datacenter -PipelineVariable dc

Name

----

CG-CO-SBODEVDC

CG-SO

CG-ZZ

CG-CL

CG-NO

CG-NL

CG-CO


Viewing all articles
Browse latest Browse all 49146

Trending Articles



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