Quantcast
Channel: VMware Communities : Discussion List - Site Recovery Manager
Viewing all articles
Browse latest Browse all 3691

SRM 8.3 Appliance Connect-SrmServer : Unable to connect to the remote server

$
0
0

Hi,

 

we recently migrate from Windows SRM to appliance and since then we were not able to connect via powercli.

 

I know that the default port is now 443 and you have to specified that in the connection string but still no luck.

 

Here is my connection string :

 

Connect-SrmServer -SrmServerAddress 10.60.10.10 -port 443 -Credential $credential

 

Connect-SrmServer : Unable to connect to the remote server

At line:1 char:1

+ Connect-SrmServer -SrmServerAddress 10.60.10.10 -port 443 -Credentia ...

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

    + CategoryInfo          : NotSpecified: (:) [Connect-SrmServer], VimException

    + FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.VimException,VMware.VimAutomation.Srm.Commands.Commands.ConnectSr

   mServer

 

 

if i do a netstat right after the command i have this

 

C:\Users\Administrator>netstat -an | findstr "10.60.10.10"

  TCP    10.60.192.205:50191    10.60.10.10:443       ESTABLISHED

  TCP    10.60.192.205:50192    10.60.10.10:443       ESTABLISHED

 

Which tell that the communication is ok.

 

I also try this but no luck to find any solutions

 

PS C:\Users\Administrator> $exception = $error[0].Exception

$exception | select *

 

 

 

 

ErrorId           : ConnectServer_UnhandledException

ErrorCategory     : NotSpecified

TargetObject      :

RecommendedAction :

SessionId         :

ConnectionId      :

Severity          : Error

Message           : Unable to connect to the remote server

Data              : {}

InnerException    : System.NullReferenceException: Object reference not set to an instance of an object.

                       at VMware.VimAutomation.Srm.Impl.V1.SrmServerImpl.ConstructSrmServer(String srmServerId, SrmClient srmClient, String loggedInUser)

                       at VMware.VimAutomation.Srm.Impl.V1.SrmServiceImpl.ConnectSrm(SrmClientConnectAction connectAction, String hostName, Nullable`1

                    portOverride, String protocol, String username, CookieContainer cookieContainer, IServerCertificateValidationHandler

                    certificateValidationHandler)

                       at VMware.VimAutomation.Srm.Commands.Commands.ConnectSrmServer.<>c__DisplayClass57_0.<ProcessManualParamset>b__1(IServerCertificateVal

                    idationHandler certificateValidationHandler)

                       at VMware.VimAutomation.Srm.Commands.Commands.ConnectSrmServer.<>c__DisplayClass64_0.<ConnectCertificateValidationHandled>b__0()

TargetSite        : Void ConnectCertificateValidationHandled(System.Func`2[VMware.VimAutomation.Common.Interop.V1.Certificate.IServerCertificateValidationHan

                    dler,VMware.VimAutomation.Srm.Interop.V1.SrmServerInterop[]])

StackTrace        :    at VMware.VimAutomation.Srm.Commands.Commands.ConnectSrmServer.ConnectCertificateValidationHandled(Func`2 connectAction)

                       at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ErrorCallbackCmdletBase.ProcessRecord()

                       at System.Management.Automation.CommandProcessor.ProcessRecord()

HelpLink          :

Source            : VMware.VimAutomation.Srm.Commands

HResult           : -2146232832

 

 

Also if i specified wrong credential i have the expected error message

 

Connect-SrmServer : Cannot complete login due to an incorrect user name or password.

 

 

anyone can help ?

 

Thanks


Viewing all articles
Browse latest Browse all 3691

Trending Articles



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