HI George,
Sorry for late reply, i was busy in some other stuff.
below is the error information
PowerCLI C:\> Connect-SrmServer -Credential $cred -RemoteCredential $cred
Connect-SrmServer : 7/23/2014 10:16:15 AM Connect-SrmServer Unable to
connect to the remote server
At line:1 char:18
+ Connect-SrmServer <<<< -Credential $cred -RemoteCredential $cred
+ CategoryInfo : NotSpecified: (:) [Connect-SrmServer], VimExcept
ion
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.Srm.ConnectSrmServer
PowerCLI C:\> $exception = $error[0].Exception
PowerCLI C:\> $exception | select *
ErrorId : Core_BaseCmdlet_UnknownError
ErrorCategory : NotSpecified
TargetObject :
RecommendedAction :
SessionId :
ConnectionId : /VIServer=scs_prod\sachin.kalkutki@vor-mtan-vc111:443/
Severity : Error
Message : 7/23/2014 10:16:15 AM Connect-SrmServer Unable to
connect to the remote server
Data : {ParameterValues}
InnerException : System.Net.WebException: Unable to connect to the remote se
rver ---> 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.xxx.
xx.xx:9007
at System.Net.Sockets.Socket.DoConnect(EndPoint endPoint
Snapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint re
moteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean
connectFailure, Socket s4, Socket s6, Socket& socket, IPAd
dress& address, ConnectSocketState state, IAsyncResult asyn
cResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at VMware.VimAutomation.Srm.Views.SrmServiceInstance.Srm
LoginSites(String username, String password, String remoteU
sername, String remotePassword, String locale)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.SrmComponentI
mpl.LoginToSrmServerAtBothSites(String username, SecureStri
ng password, String remoteUsername, SecureString remotePass
word, String locale, SrmClient srmClient)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.SrmComponentI
mpl.ConnectSrmClient(String hostName, Int32 port, String pr
otocol, String username, SecureString password, String remo
teUsername, SecureString remotePassword, String locale)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.RelatedSrmSer
viceImpl.<ConnectSrmServers>d__c.MoveNext()
at VMware.VimAutomation.ViCore.Cmdlets.Commands.Srm.Conn
ectSrmServer.DoWork(VIAutomation client, List`1 moList)
at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseC
mdlet.DoWork(VIConnection connection, List`1 moList)
at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdl
et.DoWorkEx(VIConnection connection, List`1 moList)
at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.Connecti
onDispatchHelper.ExecuteRunlist(Dictionary`2 runlist, DoWor
kDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelp
er, List`1 result)
TargetSite :
StackTrace :
HelpLink :
Source :
PowerCLI C:\> $exception.InnerException | select *
Status : ConnectFailure
Response :
Message : Unable to connect to the remote server
Data : {ConnectionId}
InnerException : System.Net.Sockets.SocketException: A connection attempt faile
d because the connected party did not properly respond after a
period of time, or established connection failed because conn
ected host has failed to respond 10.xx.xx.xx:9007
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSna
pshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remot
eEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean co
nnectFailure, Socket s4, Socket s6, Socket& socket, IPAddress&
address, ConnectSocketState state, IAsyncResult asyncResult,
Int32 timeout, Exception& exception)
TargetSite : Void SrmLoginSites(System.String, System.String, System.String
, System.String, System.String)
StackTrace : at VMware.VimAutomation.Srm.Views.SrmServiceInstance.SrmLog
inSites(String username, String password, String remoteUsernam
e, String remotePassword, String locale)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.SrmComponentImpl
.LoginToSrmServerAtBothSites(String username, SecureString pas
sword, String remoteUsername, SecureString remotePassword, Str
ing locale, SrmClient srmClient)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.SrmComponentImpl
.ConnectSrmClient(String hostName, Int32 port, String protocol
, String username, SecureString password, String remoteUsernam
e, SecureString remotePassword, String locale)
at VMware.VimAutomation.ViCore.Impl.V1.Srm.RelatedSrmServic
eImpl.<ConnectSrmServers>d__c.MoveNext()
at VMware.VimAutomation.ViCore.Cmdlets.Commands.Srm.Connect
SrmServer.DoWork(VIAutomation client, List`1 moList)
at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdl
et.DoWork(VIConnection connection, List`1 moList)
at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.
DoWorkEx(VIConnection connection, List`1 moList)
at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionD
ispatchHelper.ExecuteRunlist(Dictionary`2 runlist, DoWorkDeleg
ate doWorkDelegate, UidDispatchHelper uidDispatchHelper, List`
1 result)
HelpLink :
Source : VMware.VimAutomation.Srm.Views