-
1. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
vijayrana968 Oct 8, 2018 6:23 AM (in response to dmveron2)Have you tried telnet 443 to vCenter from workstation where you are trying to run this from !
-
2. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
dmveron2 Oct 8, 2018 6:30 AM (in response to vijayrana968)I get a blinking cursor for about 30 seconds before it times out and returns to the command prompt - which is the same response from the other four vCenters.
-
3. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
LucD Oct 8, 2018 6:55 AM (in response to dmveron2)Which PowerCLI version are you using?
And does this give the same error?
Get-VM -RelatedObject $getCIVMinfo
-
4. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
dmveron2 Oct 8, 2018 7:08 AM (in response to LucD)Hello LucD,
Running the command as you suggested results in the same error, but just Get-VM $getCIVMinfo* by itself works fine. I've pasted the results of some attempts below. And here's the version info:
Get-Module -Name VMware.PowerCLI | Select-Object -Property Name,Version
Name Version
---- -------
VMware.PowerCLI 10.2.0.9372002
PS C:\ps> $getCIVMinfo = Get-OrgVdc NameRedacted | Get-CIVApp -Name Collector-02 | Get-CIVM -Name Collector02
PS C:\ps> $vsphereVMView = Get-VM -RelatedObject $getCIVMinfo
Get-VM : 08-Oct-18 09:58:11 Get-VM vCenter server 'https://fqdnredacted:443' could not be
found. Please make sure you are connected.
At line:1 char:18
+ $vsphereVMView = Get-VM -RelatedObject $getCIVMinfo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VM], CIException
+ FullyQualifiedErrorId : CloudImpl_VIObjectInteropServiceImpl_GetDatastore_Error,VMware.VimAutomation.ViCore.Cmdl
ets.Commands.GetVM
PS C:\ps> get-vm Collector02*
Name PowerState Num CPUs MemoryGB
---- ---------- -------- --------
COLLECTOR02 (... PoweredOn 2 4.000
PS C:\ps> Get-VM -RelatedObject $getCIVMinfo
Get-VM : 08-Oct-18 09:59:34 Get-VM vCenter server 'https://fqdnredacted:443' could not be
found. Please make sure you are connected.
At line:1 char:1
+ Get-VM -RelatedObject $getCIVMinfo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VM], CIException
+ FullyQualifiedErrorId : CloudImpl_VIObjectInteropServiceImpl_GetDatastore_Error,VMware.VimAutomation.ViCore.Cmdl
ets.Commands.GetVM
PS C:\ps> $getCIVMinfo
Name Status GuestOSFullName CpuCount MemoryGB
---- ------ --------------- -------- --------
COLLECTOR02 PoweredOn Microsoft Windows Server 2012 (64-bit) 2 4.000
PS C:\ps> Get-VM $getCIVMinfo*
Name PowerState Num CPUs MemoryGB
---- ---------- -------- --------
COLLECTOR02 (... PoweredOn 2 4.000
Sorry, I don't know how to paste with the PowerShell colors in-tact. Thanks in advance.
-
5. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
LucD Oct 8, 2018 7:19 AM (in response to dmveron2)That's the latest PowerCLI version.
The fact the vCenter is a Windows-version could play a role.
Did you already try disabling the Firewall on the Windows box?
-
6. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
dmveron2 Oct 8, 2018 7:30 AM (in response to LucD)I just RDPed into the Windows box to check, and we have the windows firewall completely disabled. Good thought though.
-
7. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
LucD Oct 8, 2018 7:38 AM (in response to dmveron2)There are 2 options left:
- do a network trace with the cmdlet to the Windows vCenter and one to a VCSA. Then compare both traces and check if you can find any obvious difference
- open a SR. PowerCLI is supported, even without a Development Support contract. Should GSS make the remark about support, point them to PowerCLI Support Breakdown
-
8. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
dmveron2 Oct 8, 2018 7:43 AM (in response to LucD)"network trace with the cmdlet" do you mean tracert to the vCenter? Thanks.
-
9. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
LucD Oct 8, 2018 8:28 AM (in response to dmveron2)No, a real network trace with something like WireShark for example.
But it requires some network protocol knowledge.
If too tricky, I would go for the SR -
10. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
dmveron2 Oct 8, 2018 8:41 AM (in response to LucD)Ah, got it.
I think I'm going to head down the SR route and see where that goes. I did some manual testing on different machines, including logging in with a local account to a Windows VM on the same subnet as the vCenter I'm having issues with. PowerCLI had never been installed on this box. I installed power CLI, connected to vCenter using the IP, and I'm still receiving the same error. Interestingly enough, the error includes the FQDN even though I connected by IP. I'll update this thread with anything I get from support in case someone else out there runs into this issue. Thanks!
-
11. Re: Get-View -RelatedObject returns error Unable to retrieve related object: vCenter server
vijayrana968 Oct 8, 2018 9:08 AM (in response to dmveron2)When youre executing command, run netstat -a -n on workstation and see the connection statistics for impacted and other vCenter.