VMware Cloud Community
youngcm2
Contributor
Contributor

Timeouts on VimClient.Login

I consistantly get timeouts when connecting to our vSphere server.

[2012-11-13 09:07:18.3441] [Error] >>> Error connecting: {0} - {1} (172.16.10.1 - ptsdcs\CYoung): System.Net.WebException: The operation has timed out
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at VimApi_50.VimService.Login(ManagedObjectReference _this, String userName, String password, String locale)
   at VMware.Vim.SessionManager.Login(String userName, String password, String locale)
   at VMware.Vim.VimClient.Login(String username, String password)

Is there any other troubleshooting I can do to resolve this issue?

0 Kudos
2 Replies
LucD
Leadership
Leadership

Is port 443 open to the vCenter or ESXi server ?

And if you want to use Invoke-VMScript you would also need port 902


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
aevrov
VMware Employee
VMware Employee

You can check and update the request timeout settings with Get/Set-PowerCLIConfiguration (the WebOperationTimeoutSeconds setting). But I doubd that the problem is the timeout period, probably you have a connectivity isse as Luc pointed out.

0 Kudos