Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 4515

Not able to connect to vCD from PowerCLI

$
0
0

Hello Everyone,

 

I am trying to connect to vCloud Director using PowerCLI which i recently installed.

 

I get below error.

 

PowerCLI C:\> Connect-CIServer 10.XXXXXXX

Connect-CIServer : 23-02-2018 15:04:36 Connect-CIServer                Unable to connect to the remote server

At line:1 char:1

+ Connect-CIServer 10.XXXXXXX

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

    + CategoryInfo          : NotSpecified: (:) [Connect-CIServer], CIException

    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer

 

PowerCLI C:\> $error[0] | fl * -Force

 

 

writeErrorStream      : True

PSMessageDetails      :

Exception             : VMware.VimAutomation.Cloud.Types.V1.CIException: 23-02-2018 15:04:36    Connect-CIServer                Unable to connect to the remote server   ---> System.Net.WebException: Unable to connect to the remote server --->

                        System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to

                        respond 10.XXXXXXX:443

                           at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

                           at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

                           --- End of inner exception stack trace ---

                           at System.Net.HttpWebRequest.GetResponse()

                           at Spring.Http.Client.WebClientHttpRequest.Execute()

                           at Spring.Rest.Client.RestTemplate.DoExecute[T](Uri uri, HttpMethod method, IRequestCallback requestCallback, IResponseExtractor`1 responseExtractor)

                           at Spring.Rest.Client.RestTemplate.GetForObject[T](String url, Object[] uriVariables)

                           at VMware.VimAutomation.Cloud.Views.Connectivity.VersionHelper.GetSupportedVersionsFromServer()

                           at VMware.VimAutomation.Cloud.Views.Connectivity.VersionHelper..ctor(CloudClient client)

                           at VMware.VimAutomation.Cloud.Views.CloudClient.EstablishVersionAndLoginUri()

                           at VMware.VimAutomation.Cloud.Views.CloudClient.Connect(String serverUrl, String organization, String username, String password)

                           at VMware.VimAutomation.Cloud.Impl.V1.Service.ConnectivityServiceImpl.ConnectCloudServer(String serverName, String protocol, Int32 port, String organization, String username, String password,

                        RemoteCertificateValidationCallback certificateValidationCallback)

                           --- End of inner exception stack trace ---

                           at VMware.VimAutomation.Cloud.Impl.V1.Service.ConnectivityServiceImpl.ConnectCloudServer(String serverName, String protocol, Int32 port, String organization, String username, String password,

                        RemoteCertificateValidationCallback certificateValidationCallback)

                           at VMware.VimAutomation.Cloud.Impl.V1.Service.ClientManagerImpl.ConnectCloudServer(String serverUrl, String protocol, Int32 port, String organization, String username, String password,

                        RemoteCertificateValidationCallback certificateValidationCallback)

                           at VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer.ProcessRecordErrorHandled()

TargetObject          :

CategoryInfo          : NotSpecified: (:) [Connect-CIServer], CIException

FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer

ErrorDetails          :

InvocationInfo        : System.Management.Automation.InvocationInfo

ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1


Viewing all articles
Browse latest Browse all 4515


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