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
Datacenter | Cluster | Portgroup | VlanId | VMHostCount | VMCount |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | Management Network | 2500 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | vMotionB | 2511 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | vMotionA | 2511 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | NFS_172.28.4 | 3004 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | StorageB | 2510 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | StorageA | 2510 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | NPR--10.15.80.0_24 | 2080 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | NPR--10.15.190.0_23 | 3190 | 4 | 0 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | NPR--10.15.182.0_24 | 3182 | 4 | 1 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | SBO--10.15.184.0/22--NPR | 3184 | 4 | 176 |
CG-CO-SBODEVDC | CG-CO-SBODEV-ORADB | NFS_Direct_172.28.56 | 3056 | 4 | 176 |
> Get-Datacenter -PipelineVariable dc
Name
----
CG-CO-SBODEVDC
CG-SO
CG-ZZ
CG-CL
CG-NO
CG-NL
CG-CO